From 59566e315c5d05a0aa4a46ab80c5fda33c5c2f1e Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Sat, 29 Oct 2022 00:36:22 +0200 Subject: Update multistart docs --- R/multistart.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'R') diff --git a/R/multistart.R b/R/multistart.R index 14683c11..61ef43dc 100644 --- a/R/multistart.R +++ b/R/multistart.R @@ -40,7 +40,7 @@ #' f_mmkin <- mmkin("DFOP", dmta_ds, error_model = "tc", cores = 7, quiet = TRUE) #' f_saem_full <- saem(f_mmkin) #' f_saem_full_multi <- multistart(f_saem_full, n = 16, cores = 16) -#' parplot(f_saem_full_multi, lpos = "bottomleft") +#' parplot(f_saem_full_multi, lpos = "topleft") #' illparms(f_saem_full) #' #' f_saem_reduced <- update(f_saem_full, no_random_effect = "log_k2") @@ -50,9 +50,9 @@ #' # nodes, as it is referred to when updating the saem object on the nodes. #' library(parallel) #' cl <- makePSOCKcluster(12) -#' clusterExport(cl, "f_mmkin") #' f_saem_reduced_multi <- multistart(f_saem_reduced, n = 16, cluster = cl) #' parplot(f_saem_reduced_multi, lpos = "topright") +#' stopCluster(cl) #' } multistart <- function(object, n = 50, cores = if (Sys.info()["sysname"] == "Windows") 1 else parallel::detectCores(), -- cgit v1.2.1