Skip to content

Commit

Permalink
Try to please CRAN.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jan 21, 2020
1 parent c6f1297 commit dc4d2e5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions R/init.R
Expand Up @@ -13,16 +13,17 @@
}

.onLoad <- function(lib, pkg){
if(is_check()){
# Try to please cran...
Sys.setenv(OMP_THREAD_LIMIT = 1, MAGICK_THREAD_LIMIT = 1)
}

# Set tempdir to R session
set_magick_tempdir(tempdir())

# Needed by older versions of IM:
Sys.setenv(MAGICK_TMPDIR = tempdir())

if(is_check()){
Sys.setenv(MAGICK_THREAD_LIMIT = 2)
}

# Set the default viewer
if(is.null(getOption('magick.viewer'))){
fun <- function(x){}
Expand Down

0 comments on commit dc4d2e5

Please sign in to comment.