Skip to content

Commit

Permalink
Merge pull request Merck#253 from jdblischak/nbrOfWorkers
Browse files Browse the repository at this point in the history
Import `nbrOfWorkers()` from {future} into `NAMESPACE`
  • Loading branch information
LittleBeannie authored May 29, 2024
2 parents 75297a1 + 310c87a commit fedf01d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: simtrial
Type: Package
Title: Clinical Trial Simulation
Version: 0.4.1.4
Version: 0.4.1.5
Authors@R: c(
person("Keaven", "Anderson", email = "[email protected]", role = c("aut")),
person("Yujie", "Zhao", email = "[email protected]", role = c("ctb","cre")),
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ importFrom(data.table,setDT)
importFrom(data.table,setorderv)
importFrom(data.table,uniqueN)
importFrom(doFuture,"%dofuture%")
importFrom(future,nbrOfWorkers)
importFrom(future,plan)
importFrom(methods,is)
importFrom(mvtnorm,GenzBretz)
Expand Down
4 changes: 3 additions & 1 deletion R/global.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

# These global variables are declared to eliminate associated R CMD check warnings.
# There is no other identified functional impact of these global declarations.
# However, only variables defined in this package should be added to the list.
# If R CMD check warns about undefined global functions or variables that are
# from another package, they need to be added to this package's NAMESPACE.

utils::globalVariables(
c(
Expand All @@ -43,7 +46,6 @@ utils::globalVariables(
"n_event_tol",
"n_risk_tol",
"n_risk_trt",
"nbrOfWorkers",
"o_minus_e",
"one",
"origin",
Expand Down
2 changes: 1 addition & 1 deletion R/sim_fixed_n.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
#'
#' @importFrom data.table ":=" rbindlist setDF
#' @importFrom doFuture "%dofuture%"
#' @importFrom future plan
#' @importFrom future nbrOfWorkers plan
#' @importFrom methods is
#'
#' @export
Expand Down

0 comments on commit fedf01d

Please sign in to comment.