qpdf.exe for compactPDF?

前端 未结 4 1983
梦谈多话
梦谈多话 2020-12-15 05:08

I am trying to check a package that I have built (with vignette) using R CMD check --as-cran [my package] in my windows command prompt. All goes well until I ge

4条回答
  •  囚心锁ツ
    2020-12-15 05:40

    I would try

    Sys.which(Sys.getenv("R_QPDF", "qpdf"))
    Sys.getenv("PATH")
    

    to establish that R is really not finding the qpdf executable, and see where it is looking. You probably shouldn't need to rebuild everything, just figure out why R is not finding the qpdf executable ... does running qpdf from a terminal window work ... ? How are you starting R, and did it have a chance to get the new PATH definition (i.e. do you need to open a new terminal window, or ?? reboot ??)

    The incantation above was extracted from tools::compactPDF, from the default value of the qpdf argument, on a Linux machine. You should check for yourself, in case (e.g.) the Windows version is looking for qpdf.exe rather than qpdf ...

提交回复
热议问题