Displaying 1 result from an estimated 1 matches for "urisourc".
Did you mean:
urisource
2009 Nov 03
1
Can't pass file name as parameter to Corpus function
...ne document. I can build the corpus using the code below interactively in
R. But calling the function with a file name as the parameter I got the
error message saying "Error in eval(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 U...