Skip to content

Commit 7356da1

Browse files
committed
fix typos
1 parent c5f5e73 commit 7356da1

7 files changed

Lines changed: 19 additions & 19 deletions

File tree

R/SimDesign.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ NULL
5757
#' Example results from the Brown and Forsythe (1974) article on robust estimators for
5858
#' variance ratio tests. Statistical tests are organized by columns and the unique design conditions
5959
#' are organized by rows. See \code{\link{BF_sim_alternative}} for an alternative form of the same
60-
#' simulation. Code for this simulation is available of the wiki
60+
#' simulation. Code for this simulation is available on the Github wiki
6161
#' (\url{https://github.com/philchalmers/SimDesign/wiki}).
6262
#'
6363
#' @name BF_sim

R/SimFunctions.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#' for \code{SimDesign} to run simulations. Templated output comes complete with the correct inputs,
55
#' class of outputs, and optional comments to help with the initial definitions.
66
#' Use this at the start of your Monte Carlo simulation study. Following
7-
#' the definition of the \code{SimDesign} template file please refer to detailed the information
7+
#' the definition of the \code{SimDesign} template file please refer to the detailed the information
88
#' in \code{\link{runSimulation}} for how to edit this template to make a working simulation study.
99
#'
1010
#' The recommended approach to organizing Monte Carlo simulation files is to first save the template generated
@@ -246,7 +246,7 @@ SimFunctions <- function(filename = NULL, dir = getwd(),
246246
paste0('Generate.G', 1L:nGenerate), collapse=', '))
247247
else "Generate"
248248
genspace <- if(nGenerate > 1L) '\n ' else ""
249-
if(SimSolve) cat('solved <- SimSolve(design=Design, b=VALUE, inverval=RANGE,')
249+
if(SimSolve) cat('solved <- SimSolve(design=Design, b=VALUE, interval=RANGE,')
250250
else cat('res <- runSimulation(design=Design, replications=2,')
251251
if(generate)
252252
cat(sprintf('%sgenerate=%s, ', genspace, Generate_string))

R/runSimulation.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
#' \describe{
2929
#' \item{1)}{Define a suitable \code{Design} object (a \code{tibble} or \code{data.frame})
3030
#' 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
3333
#' investigation (e.g., sample size,
3434
#' distribution types, etc). This is often expedited by using the
3535
#' \code{\link{createDesign}} function, and if necessary the argument \code{subset}
@@ -114,7 +114,7 @@
114114
#' In the event of a computer crash, power outage, etc, if \code{save = TRUE} was used (the default)
115115
#' then the original code used to execute \code{runSimulation()} need only be re-run to resume
116116
#' 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
118118
#' state was terminated. If users wish to remove this temporary
119119
#' simulation state entirely so as to start anew then simply pass \code{SimClean(temp = TRUE)}
120120
#' in the R console to remove any previously saved temporary objects.
@@ -126,7 +126,7 @@
126126
#' R objects defined in the global environment will generally \emph{not} be visible across nodes.
127127
#' Hence, you may see errors such as \code{Error: object 'something' not found} if you try to use
128128
#' 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
130130
#' \code{fixed_objects} input (usually it's convenient to supply a named list of these objects).
131131
#' Fortunately, however, \emph{custom functions defined in the global environment are exported across
132132
#' nodes automatically}. This makes it convenient when writing code because custom functions will
@@ -176,7 +176,7 @@
176176
#'
177177
#' Omitting this function will return a tibble with the \code{Design}
178178
#' 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
180180
#' \code{Analyse()} call was a one-dimensional vector.
181181
#' For more general objects returned by \code{Analyse()}
182182
#' (such as \code{list}s), a \code{list}
@@ -229,7 +229,7 @@
229229
#' \code{\}}
230230
#'
231231
#' 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
233233
#' RDS files, and (3) load them efficiently during the simulation. This is preferable to
234234
#' generating objects within \code{prepare()} itself because it allows you to inspect the
235235
#' objects, ensures reproducibility, and separates object generation from the simulation workflow.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ To install the latest stable version of the package from CRAN, please use the fo
1313
install.packages('SimDesign')
1414
```
1515

16-
To install the Github version of the package with `devtools`, type the following (assuming you have already installed the `devtools` package from CRAN).
16+
To install the Github version of the package with `remotes`, type the following (assuming you have already installed the `remotes` package from CRAN).
1717

1818
```r
19-
library('devtools')
19+
library('remotes')
2020
install_github('philchalmers/SimDesign')
2121
```
2222

man/BF_sim.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/SimFunctions.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/runSimulation.Rd

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)