Skip to content

Commit e659560

Browse files
committed
coerce numeric to character
1 parent fd893f7 commit e659560

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

R/SimSolve.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@
118118
#' used to reflect this tolerance range
119119
#'
120120
#' @param wait.time (optional) argument passed to \code{\link{PBA}} to indicate
121-
#' the time to wait (specified in minutes) per row in the \code{Design} object
121+
#' the time to wait (specified in minutes if a numeric vector is passed)
122+
#' per row in the \code{Design} object
122123
#' rather than using pre-determined termination criteria based on the estimates.
123124
#' For example, if three three conditions were defined in
124125
#' \code{Design}, and \code{wait.time="5"},
@@ -485,6 +486,8 @@ SimSolve <- function(design, interval, b, generate, analyse, summarise,
485486
if(!is.null(wait.time) && maxiter == 100L){
486487
maxiter <- 3000L
487488
predCI.tol <- 0
489+
if(!is.character(wait.time))
490+
wait.time <- as.character(wait.time)
488491
}
489492
if(is.list(replications)){
490493
if(is.null(replications$burnin.iter)) replications$burnin.iter <- burnin.iter else

man/SimSolve.Rd

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

0 commit comments

Comments
 (0)