Open maurolepore opened 2 years ago
Saving this here to make it more discoverable -- I found it hard to find that R CMD check sets the environment var "R_CMD".
skip_if_R_CMD_check <- function() { if (!nzchar(Sys.getenv("R_CMD"))) { return(invisible(TRUE)) } skip("Not run in R CMD check") }
https://github.com/2DegreesInvesting/PACTA_analysis/blob/master/R/skip_if_R_CMD_check.R
Thanks @cjyetman cc' @MirijaHa
LOL.... agreed, that was not easy for me to discover!
Saving this here to make it more discoverable -- I found it hard to find that R CMD check sets the environment var "R_CMD".
https://github.com/2DegreesInvesting/PACTA_analysis/blob/master/R/skip_if_R_CMD_check.R
Thanks @cjyetman cc' @MirijaHa