I'd be interested to have the following capability, and am putting this out to see if others would find similar use, or if this could be supported regardless.
"RCACHE.DIR" is sought as an option, with getOption, and I think it's mentioned at least once in the docs that there's often the desire to have a different "RCACHE.DIR" on a per-project basis. The caveat mentioned is sharing caches between projects. For that use and for general use, I'd like to set a more general "RCACHE.DIR". I tend to use things like cacheSubDir for getting the project-specificity that's often desirable.
I could configure "RCACHE.DIR" in a .Rprofile, but I'd like several members of a group to be able to share the same "RCACHE.DIR" setting by having a common, environment variable that's managed separately and (I think?) more easily shareable than a .Rprofile.
So I guess this is sort of a two-part question:
- Is there a way to share
.Rprofile as easily as an environment variable (through a module). I guess R_HOME could do be common, and then there could be a group .Rprofile, but that costs each individual user a layer of control by forcing the R_HOME to be reserved for the group.
- If there's not a great way to share a
RCACHE.DIR via .Rprofile, could logic be added to support the notion of "get the RCACHE.DIR option, but use a similarly named environment variable if it's set?" Maybe the function could call getOption, then fall back to Sys.getenv?
I'd be interested to have the following capability, and am putting this out to see if others would find similar use, or if this could be supported regardless.
"RCACHE.DIR"is sought as an option, withgetOption, and I think it's mentioned at least once in the docs that there's often the desire to have a different"RCACHE.DIR"on a per-project basis. The caveat mentioned is sharing caches between projects. For that use and for general use, I'd like to set a more general"RCACHE.DIR". I tend to use things likecacheSubDirfor getting the project-specificity that's often desirable.I could configure
"RCACHE.DIR"in a.Rprofile, but I'd like several members of a group to be able to share the same"RCACHE.DIR"setting by having a common, environment variable that's managed separately and (I think?) more easily shareable than a.Rprofile.So I guess this is sort of a two-part question:
.Rprofileas easily as an environment variable (through a module). I guessR_HOMEcould do be common, and then there could be a group.Rprofile, but that costs each individual user a layer of control by forcing theR_HOMEto be reserved for the group.RCACHE.DIRvia.Rprofile, could logic be added to support the notion of "get the RCACHE.DIR option, but use a similarly named environment variable if it's set?" Maybe the function could callgetOption, then fall back toSys.getenv?