Skip to content

Commit

Permalink
see if _R_CHECK_LICENSE_ is in environment variables, too
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Apr 23, 2015
1 parent a456b0c commit 08e04c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,8 @@ knit_handlers = function(fun, options) {

# conditionally disable some features during R CMD check
is_R_CMD_check = function() {
('CheckExEnv' %in% search()) || ('_R_CHECK_TIMINGS_' %in% names(Sys.getenv()))
('CheckExEnv' %in% search()) ||
any(c('_R_CHECK_TIMINGS_', '_R_CHECK_LICENSE_') %in% names(Sys.getenv()))
}

# is the inst dir under . or ..? differs in R CMD build/INSTALL and devtools/roxygen2
Expand Down

0 comments on commit 08e04c4

Please sign in to comment.