Re: [R] .Rprofile with devtools::install_github() loops

2021-02-10 Thread Bill Dunlap
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

[R] .Rprofile with devtools::install_github() loops

2021-02-10 Thread Chris Evans
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