问题
I have an R script that I would like to run from the command line using Rscript.exe
in Windows. The script runs fine if I open it in RStudio but when I run it through Rscript in the command line it fails because I have UNC paths in my script. For example,
read.csv("//server/directory/file.csv/")
Rscript fails and says the directory does not exist. Is there anyway to resolve this problem?
来源:https://stackoverflow.com/questions/37702472/rscript-and-unc-paths