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

2021-02-11 Thread Chris Evans
al Message - > From: "Bill Dunlap" > To: "Chris Evans" > Cc: "R-help" > Sent: Wednesday, 10 February, 2021 16:48:18 > Subject: Re: [R] .Rprofile with devtools::install_github() loops > Installing a package involves running several R subprocesses, each

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