I have tried the example code recommended in the tm::readPDF documentation:
library(tm) if(all(file.exists(Sys.which(c(\"pdfinfo\", \"pdftotext\"))))) {
Did some debugging and see it fails in tm:::pdfinfo():
tm:::pdfinfo()
status <- system2("pdfinfo", shQuote(normalizePath(file)), stdout = outfile)
This command doesn't create the outfile. According to Redirect system2 stdout to a file on windows this is a bug!