Skip to content

Commit

Permalink
do not suggest the 'bayesplot' package for now
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-buerkner committed Sep 14, 2016
1 parent 2f68278 commit eb7a097
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -29,7 +29,6 @@ Imports:
grid
Suggests:
testthat (>= 0.9.1),
bayesplot,
arm,
mvtnorm,
KernSmooth,
Expand Down
3 changes: 2 additions & 1 deletion R/brmsfit-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -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')"),
Expand Down

0 comments on commit eb7a097

Please sign in to comment.