Skip to content

Commit

Permalink
replace another require()
Browse files Browse the repository at this point in the history
  • Loading branch information
richarddmorey committed Feb 1, 2015
1 parent 1b96300 commit 1286dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/BayesFactor/R/methods-BFBayesFactor.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ setMethod("recompute", "BFBayesFactor", function(x, progress = options()$BFprogr
if(multicore){
callback = function(...) as.integer(0)
message("Note: Progress bars and callbacks are suppressed when running multicore.")
if( !suppressMessages( require(doMC, quietly = TRUE) ) ){
if( !suppressMessages( requireNamespace("doMC", quietly = TRUE) ) ){
stop("Required package (doMC) missing for multicore functionality.")
}
doMC::registerDoMC()
Expand Down

0 comments on commit 1286dba

Please sign in to comment.