I want to open several files with R and therefore use the function choose.files(), which is frequently recommended here in stackoverflow for this purpose. Anyway, this does not work in my code, and I would be very happy if someone can tell me what`s wrong. This is the beginning of my code:
corpus1<-scan(choose.files(default="C:/Desktop/test", caption = "Select
files", multi = TRUE))
... and this is the output:
Error in file(file, "r") : invalid 'description' argument
In addition: Warning message:
In if (file == "") file <- stdin() else { :
the condition has length > 1 and only the first element will be used
Thanks in advance! M_Be