Installing a package involves running several R subprocesses, each of
which is running that .Rprofile. You may be able to stop the infinite
recursion by setting an environment variable that subprocesses can
check. E.g. replace
install_github("xxx/yyy")
with
if (Sys.getenv("INSTALLING_FROM_GIT
I am sure this must be documented somewhere and that I'm missing something
obvious but some searching isn't finding an answer and I'm sure there is one.
I have created a very simple package on GitHub and want my machines (other than
the one that built it) to load it when they start R using
devt
2 matches
Mail list logo