Skip to content

Commit eb7a097

Browse files
committed
do not suggest the 'bayesplot' package for now
1 parent 2f68278 commit eb7a097

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: brms
22
Type: Package
33
Title: Bayesian Regression Models using Stan
44
Version: 1.0.0
5-
Date: 2016-09-11
5+
Date: 2016-09-15
66
Authors@R: person("Paul-Christian", "Buerkner", email = "[email protected]",
77
role = c("aut", "cre"))
88
Depends:
@@ -29,7 +29,6 @@ Imports:
2929
grid
3030
Suggests:
3131
testthat (>= 0.9.1),
32-
bayesplot,
3332
arm,
3433
mvtnorm,
3534
KernSmooth,

R/brmsfit-methods.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,8 @@ stanplot.brmsfit <- function(object, pars = NA, type = "plot",
962962
pp_check.brmsfit <- function(object, type, nsamples, group = NULL,
963963
time = NULL, x = NULL, re_formula = NULL,
964964
subset = NULL, ntrys = 5, ...) {
965-
if (!requireNamespace("bayesplot", quietly = TRUE)) {
965+
rN_text <- "requireNamespace('bayesplot', quietly = TRUE)"
966+
if (!eval(parse(text = rN_text))) {
966967
# remove check as soon as bayesplot is on CRAN
967968
stop(paste0("please install the bayesplot package via\n",
968969
"devtools::install_github('jgabry/bayesplot')"),

0 commit comments

Comments
 (0)