|
28 | 28 | #' \describe{ |
29 | 29 | #' \item{1)}{Define a suitable \code{Design} object (a \code{tibble} or \code{data.frame}) |
30 | 30 | #' containing fixed conditional |
31 | | -#' information about the Monte Carlo simulations. Each row or this \code{design} object pertains |
32 | | -#' to a unique set of simulation to study, while each column the simulation factor under |
| 31 | +#' information about the Monte Carlo simulations. Each row of this \code{design} object pertains |
| 32 | +#' to a unique set of simulation conditions to study, while each column the simulation factor under |
33 | 33 | #' investigation (e.g., sample size, |
34 | 34 | #' distribution types, etc). This is often expedited by using the |
35 | 35 | #' \code{\link{createDesign}} function, and if necessary the argument \code{subset} |
|
114 | 114 | #' In the event of a computer crash, power outage, etc, if \code{save = TRUE} was used (the default) |
115 | 115 | #' then the original code used to execute \code{runSimulation()} need only be re-run to resume |
116 | 116 | #' the simulation. The saved temp file will be read into the function automatically, and the |
117 | | -#' simulation will continue one the condition where it left off before the simulation |
| 117 | +#' simulation will continue at the condition where it left off before the simulation |
118 | 118 | #' state was terminated. If users wish to remove this temporary |
119 | 119 | #' simulation state entirely so as to start anew then simply pass \code{SimClean(temp = TRUE)} |
120 | 120 | #' in the R console to remove any previously saved temporary objects. |
|
126 | 126 | #' R objects defined in the global environment will generally \emph{not} be visible across nodes. |
127 | 127 | #' Hence, you may see errors such as \code{Error: object 'something' not found} if you try to use |
128 | 128 | #' an object that is defined in the work space but is not passed to \code{runSimulation}. |
129 | | -#' To avoid this type or error, simply pass additional objects to the |
| 129 | +#' To avoid this type of error, simply pass additional objects to the |
130 | 130 | #' \code{fixed_objects} input (usually it's convenient to supply a named list of these objects). |
131 | 131 | #' Fortunately, however, \emph{custom functions defined in the global environment are exported across |
132 | 132 | #' nodes automatically}. This makes it convenient when writing code because custom functions will |
|
176 | 176 | #' |
177 | 177 | #' Omitting this function will return a tibble with the \code{Design} |
178 | 178 | #' and associated results information for all |
179 | | -#' \code{nrow(Design) * repliations} evaluations if the results from each |
| 179 | +#' \code{nrow(Design) * replications} evaluations if the results from each |
180 | 180 | #' \code{Analyse()} call was a one-dimensional vector. |
181 | 181 | #' For more general objects returned by \code{Analyse()} |
182 | 182 | #' (such as \code{list}s), a \code{list} |
|
229 | 229 | #' \code{\}} |
230 | 230 | #' |
231 | 231 | #' This approach allows you to: (1) pre-generate expensive condition-specific objects |
232 | | -#' prior to running the simulation , (2) save them as individual |
| 232 | +#' prior to running the simulation, (2) save them as individual |
233 | 233 | #' RDS files, and (3) load them efficiently during the simulation. This is preferable to |
234 | 234 | #' generating objects within \code{prepare()} itself because it allows you to inspect the |
235 | 235 | #' objects, ensures reproducibility, and separates object generation from the simulation workflow. |
|
0 commit comments