Hello there,
First time posting here so apologies for errors in post.
My office recently encrypted certain shared folders using McAfee FRP software. When I log on to my computer (which uses Windows 10 Enterprise) I am automatically logged in with an authentication key so that I can access the encrypted folders and files in their folders without a problem. I can open Excel files and I can load in Excel/CSV files into my SAS programs.
However, when I try to load in files using R by setting my work directory and then loading in a csv, I get the following error:
setwd("V:/Education")
test <- read.csv('test.csv')
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open file 'test.csv': No such file or directory
When I transfer the encrypted file from an encrypted folder to my personal, unencrypted folders, this code works fine (with the appropriate adjustment to the setwd command).
A colleague found a workaround - I can load in the CSV from an encrypted folder if I put in the full path name into my read.csv command.
However, I find it very strange that I can't set up a working directory and import files without having to write the entire path every time. I was wondering if anyone had any experience with this issue or knew more about what's going on 'underneath the hood' that would explain why it happens.
Thank you.