RStudio: unexpected call to `dir.create ()` with the first instruction in a project stored on a network drive

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?

+6
source share
1 answer

The error message is very clear. This is not about your temporary drivers. This means that you need permission to create a folder in place.

, , , , . , , , .

, , , sudo, , system('sudo mkdir -p tempPath').

: , , Windows, sudo . . , " " - .

0

All Articles