I have created a report in markdown and use the function render() to compile the code into a PDF. It worked fine a month ago, but when I run the code now, it gi
Just a comment to the output question, as I got stuck with this, too:
the outfile must be the absolute path. I think dir.exists() looks in the local working directory. Using ".\\" in front helped in my case. In yours it would be using paste0(".\\",outfile,".pdf").