diff --git a/DESCRIPTION b/DESCRIPTION index a2aed5449..15af50f7f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,7 +2,7 @@ Package: brms Type: Package Title: Bayesian Regression Models using Stan Version: 1.0.0 -Date: 2016-09-11 +Date: 2016-09-15 Authors@R: person("Paul-Christian", "Buerkner", email = "paul.buerkner@gmail.com", role = c("aut", "cre")) Depends: @@ -29,7 +29,6 @@ Imports: grid Suggests: testthat (>= 0.9.1), - bayesplot, arm, mvtnorm, KernSmooth, diff --git a/R/brmsfit-methods.R b/R/brmsfit-methods.R index b73f556f6..eeb12784e 100644 --- a/R/brmsfit-methods.R +++ b/R/brmsfit-methods.R @@ -962,7 +962,8 @@ stanplot.brmsfit <- function(object, pars = NA, type = "plot", pp_check.brmsfit <- function(object, type, nsamples, group = NULL, time = NULL, x = NULL, re_formula = NULL, subset = NULL, ntrys = 5, ...) { - if (!requireNamespace("bayesplot", quietly = TRUE)) { + rN_text <- "requireNamespace('bayesplot', quietly = TRUE)" + if (!eval(parse(text = rN_text))) { # remove check as soon as bayesplot is on CRAN stop(paste0("please install the bayesplot package via\n", "devtools::install_github('jgabry/bayesplot')"),