Re: [Rd] How is the environment variable "R_USER" defined?

2021-11-22 Thread Duncan Murdoch
On 22/11/2021 1:06 p.m., Jiefei Wang wrote: Thanks for all your help!! It actually has nothing to do with the environment variables. The issue is caused by the backup feature in Onedrive as Bill suggested. I do not know what magic trick Onedrive uses here but it misadvices R to use its directory,

Re: [Rd] How is the environment variable "R_USER" defined?

2021-11-22 Thread Tomas Kalibera
On 11/22/21 7:06 PM, Jiefei Wang wrote: Thanks for all your help!! It actually has nothing to do with the environment variables. The issue is caused by the backup feature in Onedrive as Bill suggested. I do not know what magic trick Onedrive uses here but it misadvices R to use its directory, n

Re: [Rd] How is the environment variable "R_USER" defined?

2021-11-22 Thread Jiefei Wang
Thanks for all your help!! It actually has nothing to do with the environment variables. The issue is caused by the backup feature in Onedrive as Bill suggested. I do not know what magic trick Onedrive uses here but it misadvices R to use its directory, not my local Document directory. The answer m

Re: [Rd] How is the environment variable "R_USER" defined?

2021-11-22 Thread Bill Dunlap
Is your C:\Users\yourname\Documents linked to OneDrive (either by your choice or by some administrator setting a group policy)? If so, ou could unlink it using OneDrive's settings dialog. Or you could set R_USER to avoid using ...\Documents. -Bill On Mon, Nov 22, 2021 at 8:47 AM Jiefei Wang w

Re: [Rd] How is the environment variable "R_USER" defined?

2021-11-22 Thread Sebastian Meyer
Just a quick thought. R for Windows FAQ 2.14 talks about the home directory: https://cran.r-project.org/bin/windows/base/rw-FAQ.html#What-are-HOME-and-working-directories_003f So maybe HOMEDRIVE and HOMEPATH are involved? Hope this helps. Sebastian Meyer Am 22.11.21 um 17:46 schrieb

Re: [Rd] How is the environment variable "R_USER" defined?

2021-11-22 Thread Duncan Murdoch
On 22/11/2021 11:46 a.m., Jiefei Wang wrote: Hi, I have a new win system and try to install R as usual. Somehow, the environment variable "R_LIBS_USER" is incorrectly pointed to a Onedrive folder. Since "R_LIBS_USER" depends on "R_USER", the root problem then becomes why "R_USER" is the path to t

[Rd] meaning of browser(skipCalls=)

2021-11-22 Thread Frederick Eaton
Dear R Devel, I have been advised to use "options(error=recover)" to enable debugging on errors. But sometimes it would seem more convenient to override "stopifnot", for example: stopifnot = function(b) { if(!b) { browser(skipCalls=1); } } However, this doesn't do what I expected. On lookin

[Rd] How is the environment variable "R_USER" defined?

2021-11-22 Thread Jiefei Wang
Hi, I have a new win system and try to install R as usual. Somehow, the environment variable "R_LIBS_USER" is incorrectly pointed to a Onedrive folder. Since "R_LIBS_USER" depends on "R_USER", the root problem then becomes why "R_USER" is the path to the Onedrive. I did an exhausting search in the