[R] Is it possible to set a default working directory for all R consoles?

IAGO GINÉ VÁZQUEZ |@go@g|ne @end|ng |rom @jd@e@
Fri Jun 17 11:41:32 CEST 2022


Hi all,

Is there some way to set a default working directory each time R.exe is opened? I ask this because Always that I open R 4.2.o in Windows 10 I get the next warning messages

Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="\\172.19.2.44\profiles\profiles\me\Documents": Access is denied
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="\\172.19.2.44\profiles\profiles\me\Documents": Access is denied
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="\\172.19.2.44\profiles\profiles\me\Documents": Access is denied
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="\\172.19.2.44\profiles\profiles\me\Documents": Access is denied

Even from cmd.exe in a  C: location

C:\Users\me>R
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :                                                                                                                                                                                       path[1]="\\172.19.2.44\profiles\profiles\me\Documents": Access is denied
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
     path[1]="\\172.19.2.44\profiles\profiles\me\Documents": Access is denied
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
     path[1]="\\172.19.2.44\profiles\profiles\me\Documents": Access is denied
Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
     path[1]="\\172.19.2.44\profiles\profiles\me\Documents": Access is denied

Reading https://cran.r-project.org/bin/windows/base/rw-FAQ.html#What-are-HOME-and-working-directories_003f, first I cannot apply the suggested solution (I cannot see such "shortcut�s properties"), and second, I am not interested just in Rgui, or even RStudio, but other terminals running R (like VSCode-radian or SublimeText-Terminus)

Thanks in advance.

Best wishes,

Iago



	[[alternative HTML version deleted]]



More information about the R-help mailing list