Closed MarkEdmondson1234 closed 8 years ago
@eddelbuettel Do you have an idea?
Nope.
Any sane operating system (ie not the one from Redmond) sets $HOME
. R, just like any sane program in the Unix tradition, then reads dotfiles from $HOME
. (It also reads from current directory, see help(Startup)
but that is a digression.)
Now, what do I do? I actually (by convention) set this in ~/.Rprofile
but mostly ... because I already set other things there The again I just needed some database settings at work for some tests and stuck those into Renviron.site
. Also worked. YMMV.
In short it all works for me...
this is solved by this https://github.com/PMassicotte/gtrendsR/issues/121
Good catch, thank you. Should have smelled the bacon when you first reported this.
I put similar to below in my home directory
.Renviron
file:(note no options set) I restarted R, and could reach them via
Sys.getenv("GOOGLE_USER")
etc.However, when I tried to load the library, I got this:
When I set the options myself from the environment vars, it works:
The help file seems to indicate you can use either environment or options, and its all working now, but I guess the above is not intended.