search for: docurisource

Displaying 1 result from an estimated 1 matches for "docurisource".

2009 Nov 03
1
Can't pass file name as parameter to Corpus function
...al(expr, envir, enclos) : object 'strFileName' not found" test<-function(strFileName) { src <- URISource(strFileName) cor <- Corpus(src, readerControl = list(reader = readPDF, language = "en_US", load = TRUE)) } After running the following code in R I checked the docURISource$URI and the value is "strFileName" rather than "C:\\Temp\\readme.txt". I also checked the URI when I was debugging the function and the URI is also "strFileName" rather than "C:\\Temp\\readme.txt". strFileName <- "C:\\Temp\\readme.txt" docURIS...