diff --git a/CRAN-SUBMISSION b/CRAN-SUBMISSION new file mode 100644 index 00000000..6ac3cf16 --- /dev/null +++ b/CRAN-SUBMISSION @@ -0,0 +1,3 @@ +Version: 0.14.1 +Date: 2023-10-18 18:56:49 UTC +SHA: d7249f587e027c5f0861e22666f818db5f100602 diff --git a/R/ConvertLongitude.R b/R/ConvertLongitude.R index 90f3ef45..87b3a64c 100644 --- a/R/ConvertLongitude.R +++ b/R/ConvertLongitude.R @@ -11,6 +11,7 @@ #' Else, a list with vectors `lon` and `group`. #' #' @examples +#' data.table::setDTthreads(2) #' library(ggplot2) #' library(data.table) #' data(geopotential) diff --git a/R/Derivate.R b/R/Derivate.R index 8c9c519c..7b734efa 100644 --- a/R/Derivate.R +++ b/R/Derivate.R @@ -37,6 +37,7 @@ #' (**in that order**). #' #' @examples +#' data.table::setDTthreads(2) #' theta <- seq(0, 360, length.out = 20)*pi/180 #' theta <- theta[-1] #' x <- cos(theta) diff --git a/cran-comments.md b/cran-comments.md index b382afa8..bc9f3657 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,4 +1,7 @@ +This is a resubmission. +In this submission I added `data.table::setDTthreads(2)` to examples and tests to only use 2 cores. + In this submission I removed the gdal dependency. ## Test environments diff --git a/man/ConvertLongitude.Rd b/man/ConvertLongitude.Rd index 09365729..a829f091 100644 --- a/man/ConvertLongitude.Rd +++ b/man/ConvertLongitude.Rd @@ -22,6 +22,7 @@ Else, a list with vectors \code{lon} and \code{group}. Converts longitude from [0, 360) to [-180, 180) and vice versa. } \examples{ +data.table::setDTthreads(2) library(ggplot2) library(data.table) data(geopotential) diff --git a/man/Derivate.Rd b/man/Derivate.Rd index cd13dbc9..cf4366c2 100644 --- a/man/Derivate.Rd +++ b/man/Derivate.Rd @@ -95,6 +95,7 @@ call \code{Derivate()} and make the appropriate sums. For \code{Divergence()} an (\strong{in that order}). } \examples{ +data.table::setDTthreads(2) theta <- seq(0, 360, length.out = 20)*pi/180 theta <- theta[-1] x <- cos(theta) diff --git a/tests/testthat.R b/tests/testthat.R index 8a948806..ba134353 100644 --- a/tests/testthat.R +++ b/tests/testthat.R @@ -2,4 +2,7 @@ library(testthat) library(metR) # library(vdiffr) +on_cran <- !isTRUE(as.logical(Sys.getenv("NOT_CRAN", "false"))) +if (on_cran) data.table::setDTthreads(2) + test_check("metR")