Skip to content

Commit

Permalink
adds DTthreads
Browse files Browse the repository at this point in the history
  • Loading branch information
eliocamp committed Oct 18, 2023
1 parent d7249f5 commit ceff04d
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Version: 0.14.1
Date: 2023-10-18 18:56:49 UTC
SHA: d7249f587e027c5f0861e22666f818db5f100602
1 change: 1 addition & 0 deletions R/ConvertLongitude.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#' Else, a list with vectors `lon` and `group`.
#'
#' @examples
#' data.table::setDTthreads(2)
#' library(ggplot2)
#' library(data.table)
#' data(geopotential)
Expand Down
1 change: 1 addition & 0 deletions R/Derivate.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions man/ConvertLongitude.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/Derivate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit ceff04d

Please sign in to comment.