Skip to content

Commit

Permalink
better formating
Browse files Browse the repository at this point in the history
  • Loading branch information
philchalmers committed Jul 8, 2024
1 parent 9cfe973 commit 992b88d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/PBA.R
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ PBA <- function(f, interval, ..., p = .6,
}
no_root <- (upper[1L] + lower[1L]) != 1L
if(no_root){
msg <- sprintf('supplied interval range appears to be %s the probable root.
Resulting root estimates were [%.3f, %.3f]',
msg <- sprintf(paste0('supplied interval range appears to be %s the probable root.',
'\nResulting root estimates were [%.3f, %.3f]'),
ifelse(upper[1L] == 0, '*above*', '*below*'),
lower[2L], upper[2L])
old.opts <- options()
Expand Down
3 changes: 3 additions & 0 deletions R/SimSolve.R
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,9 @@ SimSolve <- function(design, interval, b, generate, analyse, summarise,
predCI = .95, predCI.tol = NULL, ...){

# robust <- FALSE
org.opts <- options()
options(warn = 1)
on.exit(options(org.opts), add = TRUE)
if(is.null(control$print_RAM)) control$print_RAM <- FALSE
burnin.iter <- 15L
if(is.list(replications)){
Expand Down

0 comments on commit 992b88d

Please sign in to comment.