When, I am trying to create a html document from a dataframe produced using a function. The error is -
Error: pandoc document conversion failed with error 127
I'm using R Studio version 1.1.456 and R 3.6.1
The function is -
function(future,df,Days=30,Region='India')
{
k<-data.frame(future$mean,future$lower,future$upper)
if(Region=='India')
n<-dim(df)[1]-1
else
n<-dim(df)[1]
df$Date<-row.names(df)
row.names(df)<-NULL
print(paste('Forecast of COVID cases for',Days,'days after', df$Date[n],
'in',Region))
k[1:3]<-round(k[1:3])
row.names(k)<-NULL
colnames(k)<-c('Forecast','lower Confidence Interval',
'upper Confidence Interval')
dat<-DT::datatable(k)
return(dat)
}