qpdf.exe for compactPDF?
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
...
How to build qpdf on Windows?
You basically do not need to build the file on windows. Please follow three steps below:
- Download qpdf for windows from https://sourceforge.net/projects/qpdf/?source=typ_redirect
- Extract files in a temp folder
- Copy the contents of the bin folder to %SystemRoot%\System32
job done!
Sys.which(Sys.getenv("R_QPDF", "qpdf"))
qpdf
"C:\\WINDOWS\\SYSTEM32\\qpdf.exe"
Related Topics
How to Show the Progress of Code in R
How to Create a List in R from Two Vectors (One Would Be the Keys, the Other the Values)
R Data.Table: Subgroup Weighted Percent of Group
How to Use Spell Check in Rmarkdown
How Does One Merge Dataframes by Row Name Without Adding a "Row.Names" Column
How to Extract Data from a Rasterbrick
How to Plot Mean and Standard Error in Boxplot in R
Alternate Geom_Text Position with Hjust
Error Installing Packages from Github
Scraping from Aspx Website Using R
R, Deep VS. Shallow Copies, Pass by Reference
Shading Confidence Intervals Manually with Ggplot2
How to Prevent Objects from Automatically Loading When I Open Rstudio