Skip to content

Commit

Permalink
Set higher future.globals.maxSize in bootstrapSR if not set by user
Browse files Browse the repository at this point in the history
  • Loading branch information
iagomosqueira committed Nov 4, 2024
1 parent 9f4ec45 commit 766358d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: FLSRTMB
Title: FLSR in TMB
Version: 1.1.4.9013
Version: 1.1.4.9014
Authors@R:
c(
person("Henning", "Winker", email = "[email protected]",
Expand Down
6 changes: 6 additions & 0 deletions R/bootstrap.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@

bootstrapSR <- function(x, iters=100, method=c("best", "logLik", "relative"),
models=c("bevholt", "ricker", "segreg"), verbose=TRUE, ...) {

# SET future.globals.maxSize if not set already
if(is.null(options('future.globals.maxSize')[[1]])) {
oldopt <- options(future.globals.maxSize=1500 * 1024 ^ 2)
on.exit(options(oldopt))
}

# COMPUTE average of spr0 by year
spr0x <- yearMeans(spr0y(x))
Expand Down

0 comments on commit 766358d

Please sign in to comment.