RMarkdown html document not rendering using Task Scheduler

am having task scheduler run code to knit an r markdown document then send it as an email.

It seems the issue I am having is with the "render" line because I notice that when I run this script in task scheduler without the "render" line, that it works, as I am able to get an email.

Also when I run the code by itself it works.

Why isn't the render working when I run it in task scheduler? Thanks!

 rmarkdown::render("Path/example.Rmd", output_dir = "Path")

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