How to add PATH for readPDF {tm}

I am struggling with readPDF command from package 'tm'. When I run the following command:

docsPDF <- Corpus(DirSource(cnames), readerControl = list(reader=readPDF))

      

The above command gives the following error:

Error in system2("pdftotext", c(control$text, shQuote(x), "-"), stdout = TRUE): 
'"pdftotext"' not found

      

This is because the XPDF files "pdfinfo" and "pdftotext" are not present in the R system.

file.exists(Sys.which(c("pdfinfo", "pdftotext")))
FALSE FALSE

      

I'm just wondering how to add the paths of these two files to the R system (under Win8)? Thank!

+3
r pdf tm


source to share


No one has answered this question yet

Check out similar questions:

2474
How to make a great R reproducible example
1251
How to sort a data frame by multiple columns
1068
How to concatenate (merge) data frames (inner, outer, left, right)
2
Error when using h2o.init () in R
1
Installing PDFtotext in R
0
Run system command in R Shiny
0
Parsing PDF files is repeated twice on another page
0
Running GRASS GIS 7 from R
0
how to fix error displayed by PHP code?
0
DirSource - empty directory despite correct file path



All Articles
Loading...
X
Show
Funny
Dev
Pics