Firstly, I apologize for the lack of a reproducible example, but I really can not provide it, because I believe that the problem is in my network settings. Please consider this question as a call for help in debugging the problem ...
After opening a project in RStudio that is stored on a network drive and runs the very first command (whether it is downloading a package or even a <- 1), I see a really strange conclusion in the console:
> a <- 1
Warning message:
In dir.create(tempPath, recursive = TRUE) :
cannot create dir 'F:\Marketing', reason 'Permission denied'
I have all the possible time parameters set in user environment variables (TEMP, TMP, TMPDIR) and Sys.getenv()that print them correctly.
"F: \ Marketing" is a valid path on my network drive and is the root directory of the project.
I tried debugonce(dir.create)in .RProfile to look at what tempPath is, but unfortunately this led to the error "invalid" envir "argument".
After copying the project to the local drive, the problem disappears, so this is clearly a problem with the network drive / network, but I donβt know where to dig more and my IT department. here is not very useful ...
Any ideas on debugging this warning?
source
share