cannot get a r markdown to run with cronR

Please ask your questions about R Markdown here.

Unable to execute my r markdown file when running via a cronR job

My code errors out at this line. Has anyone see this before, I tried to google this but to no good use.

rmarkdown::render("markdowns/xyz/xyz/xyz.Rmd",params=params,output_file="xyz/xyz_results.HTML",output_format = "html_document")

while executing a cronR job.

What is the error message you are getting? Have in mind that a cron job doesn't run on the same working directory that you where when you wrote the script.


Thank you for the prompt reply!

Yes, I took the change in directory into account. It still errors out

Aayush Sahni

Ok, but what the error message says?

Hi Andrés,

Please find below the error message:
Error: pandoc version 1.12.3 or higher is required and was not found.
Execution stopped

I have checked the Rstudio pandoc version and I have Is there a difference between running the job from RStudio terminal and Putty

Aayush Sahni

Try manually setting the location of pandoc in your script


Thank you! I asked my backend team to add pandoc to my r-server bin as well. Solved the issue

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.