Knitr wont compile PDF: “Error in tools::file_path_as_absolute(output_file)”

前端 未结 5 401
粉色の甜心
粉色の甜心 2020-12-01 08:15

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

5条回答
  •  孤街浪徒
    2020-12-01 08:30

    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").

提交回复
热议问题