I am running R in Windows in my laptop and I also have a Linux server account. I am able to in Windows see the shared folder between the Windows and the Linux. The shared folder file address is like this:
file://name1/name2/home/user/project.
I would like to in Windows access the data files generated from my scripts in Linux. The question is how to access the data file in the shared folder:
file://name1/name2/home/user/project/data.rds
I tried these, but all failed.
data = readRDS("file://name1/name2/home/user/project/data.rds")
data = readRDS("file://name1//name2//home//user//project//data.rds")
data = readRDS(url("file://name1/name2/home/user/project/data.rds"))
data = readRDS("file:\\\name1\\\name2\\\home\\\user\\\project\\\data.rds")
data = readRDS("\\\name1\\\name2\\\home\\\user\\\project\\\data.rds")
data = readRDS("name1\\\name2\\\home\\\user\\\project\\\data.rds")
感谢@Harun的建议,此行有效:
data = readRDS("\\\\name1\\name2\\home\\user\\Project\\data.rds")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.