From 004fce2520d6889d82226e21bc443426e81d93f2 Mon Sep 17 00:00:00 2001
From: Johannes Ranke
Date: Mon, 17 Apr 2023 19:39:09 +0200
Subject: Improve docs of multistart method
---
docs/dev/reference/multistart.html | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
(limited to 'docs/dev/reference/multistart.html')
diff --git a/docs/dev/reference/multistart.html b/docs/dev/reference/multistart.html
index 3cdede7b..36767560 100644
--- a/docs/dev/reference/multistart.html
+++ b/docs/dev/reference/multistart.html
@@ -222,15 +222,13 @@ doi: 10.1186/s12859-021-04373-4.
f_saem_reduced <- update(f_saem_full, no_random_effect = "log_k2")
illparms(f_saem_reduced)
-# On Windows, we need to create a cluster first. When working with
-# such a cluster, we need to export the mmkin object to the cluster
-# nodes, as it is referred to when updating the saem object on the nodes.
+# On Windows, we need to create a PSOCK cluster first and refer to it
+# in the call to multistart()
library(parallel)
cl <- makePSOCKcluster(12)
f_saem_reduced_multi <- multistart(f_saem_reduced, n = 16, cluster = cl)
-#> Error in checkForRemoteErrors(val): 16 nodes produced errors; first error: unused argument (mc.preschedule = FALSE)
-parplot(f_saem_reduced_multi, lpos = "topright")
-#> Error in parplot(f_saem_reduced_multi, lpos = "topright"): object 'f_saem_reduced_multi' not found
+parplot(f_saem_reduced_multi, lpos = "topright", ylim = c(0.5, 2))
+
stopCluster(cl)
# }
--
cgit v1.2.1