Displaying 4 results from an estimated 4 matches for "r_build_user".
Did you mean:
build_user
2019 Jan 25
2
Patch idea: an environment variable for setting the user ID
...om/wch/r-source/blob/521c90a175d67475b9f1b43d7ae68bc48062d8e6/src/library/tools/R/build.R#L170-L171
> >
> > 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")
>
> Yep, something along these lines should be possible.
> R_BUILD_USER or R_BUILD_LOGNAME may seem more natural though ...
&...
2018 Nov 11
2
Patch idea: an environment variable for setting the user ID
...description_file()`
<https://github.com/wch/r-source/blob/521c90a175d67475b9f1b43d7ae68bc48062d8e6/src/library/tools/R/build.R#L170-L171>
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
--
wlandau.github.io
linkedin.com/in/wlandau
github.com/wlandau
[[alternative HTML version deleted]]
2018 Nov 12
0
Patch idea: an environment variable for setting the user ID
...> <https://github.com/wch/r-source/blob/521c90a175d67475b9f1b43d7ae68bc48062d8e6/src/library/tools/R/build.R#L170-L171>
> 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")
Yep, something along these lines should be possible.
R_BUILD_USER or R_BUILD_LOGNAME may seem more natural though ...
Best
-k
> Will Lan...
2019 Nov 22
0
Patch idea: an environment variable for setting the user ID
...90a175d67475b9f1b43d7ae68bc48062d8e6/src/library/tools/R/build.R#L170-L171
> > >
> > > 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")
> >
> > Yep, something along these lines should be possible.
> > R_BUILD_USER or R_BUILD_LOGNAME may seem...