quanteda / readtext

an R package for reading text files
https://readtext.quanteda.io
120 stars 28 forks source link

Problem uploading the texts into R(Windows) #106

Closed ElCarlitos closed 6 years ago

ElCarlitos commented 7 years ago

Hi! I'm trying to 'upload' a big pdf corpus in order to be analyzed using quanteda. However, I can not make read text to actually find the files in the folder where I am storing it. I tried uploading them to cloud folders or changing the directory but still, I always get

Error in listMatchingFiles(i, ignoreMissing = ignoreMissing, lastRound = T) : File '' does not exist. I have used successfully read.text in the past. Hence, I don't any clue whats is happening. I already tried to force the path and using forward slashes, double slashes, and backslashes, but still, I do not get any improvement. I do not if anyone can give me any insight of what possibly i am doing wrong this time?

Many thanks!

This is the code im using and this a is a link of the folder: https://1drv.ms/f/s!Ajxy09NUqBYCliyAk9AUay3XMUH7

DATA_DIR <- system.file("extdata/", package = "readtext") rt_pdf <- readtext(paste0(DATADIR, "https://1drv.ms/f/s!Ajxy09NUqBYCliyAk9AUay3XMUH7/*.pdf", docvarsfrom = "filenames", docvarnames = c("Company", "Age"), sep = "")) `

Edit: Problem with the links