[R] Testing for R CMD INSTALL

Andrew Simmons @kw@|mmo @end|ng |rom gm@||@com
Sat Jul 24 17:22:14 CEST 2021


Hello,


I was wondering if anyone has a way to test if a package is currently being
installed. My solution was to check if environment variable "R_INSTALL_PKG"
was unset, something like:

"R CMD INSTALL-ing" <- function ()
!is.na(Sys.getenv("R_INSTALL_PKG", NA))

Unfortunately, I couldn't find what I was looking for with ?"environment
variables". So if anyone has any better methods, I'd be happy to hear them,
thank you!

	[[alternative HTML version deleted]]



More information about the R-help mailing list