Reload .Renviron or .Rprofile from an active R session (without restarting R)? -
when r starts (with default options), loads .rprofile
, .renviron
files in working directory or user's home directory. in case these files may changed during course of r session (e.g. packrat does). wondering if there way ask r refresh .renviron
having quit , restart r?
for instance, in case of .rprofile
, sufficient source(".rprofile")
reload .rprofile
working directory. can similar managed .renviron
?
use readrenviron
reference: http://stat.ethz.ch/r-manual/r-devel/library/base/html/readrenviron.html
yes remember getting stuck on sys.getenv while ago. , question, reminded me packrat. going use distribute code manuscript.
Comments
Post a Comment