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

前端 未结 5 393
粉色の甜心
粉色の甜心 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:27

    I had similar problem. After searching in the internet, I found a solution in community r studio

    It seems the bug is related with 1.9 version of rmarkdown, so the solution is to return to 1.8 version

    install.packages("devtools")
    library(devtools)
    install_version("rmarkdown",version=1.8)
    

    After reinstalling, when you try to knit again, probably you will be asked to install some package from Miktex. If you have any problem, check for a proper mirror. Hope this helps.

提交回复
热议问题