[Rd] Patch idea: an environment variable for setting the user ID

Will L will@l@nd@u @ending from gm@il@com
Sun Nov 11 23:32:37 CET 2018

To R-devel,

In `R CMD build`, the ID of the user is automatically inserted into the
DESCRIPTION file, e.g.

Packaged: 2018-11-06 14:01:50 UTC; <MY USER ID>

This is problematic for those of us who work in corporate settings. We must
not divulge our user IDs in the packages we develop and release.

Jim Hester pointed out that these two lines in
are responsible. Could we consider his suggestion of using an optional
environment variable to overwrite the default behavior?

user <- Sys.getenv("R_BUILD_USERNAME")
if (!nzchar(user)) user <- Sys.info()["user"]
if(user == "unknown") user <- Sys.getenv("LOGNAME")

Will Landau

	[[alternative HTML version deleted]]

More information about the R-devel mailing list