search for: directoryofrprofil

Displaying 1 result from an estimated 1 matches for "directoryofrprofil".

Did you mean: directoryofrprofile
2016 Nov 18
0
Tell whether ./.Rprofile or ~/.Rprofile is being processed?
...r priority and will be the script that R uses during the startup process. Is there a *generic* way to programmatically from within ./.Rprofile and ~/.Rprofile to tell what their absolute pathnames are or equivalently what directories they are located in? Conceptually something like: path <- directoryOfRprofile() message("Running ", file.path(path, ".Rprofile")) message(".Rprofile is in the home directory: ", normalizePath(path) == normalizePath("~")) I don't want to / cannot manually set the `path` variable. Since .Rprofile is sourced very early on when...