Permalink
Browse files

pp_check: use bayesplot::available_ppc

  • Loading branch information...
1 parent 7b6051f commit eeeb7eedecfc719df82e81c69ce66684305252f5 @paul-buerkner committed Jan 2, 2017
Showing with 3 additions and 3 deletions.
  1. +2 −2 DESCRIPTION
  2. +1 −1 R/brmsfit-methods.R
View
@@ -17,8 +17,8 @@ Imports:
shinystan (>= 2.2.1),
Matrix (>= 1.1.1),
mgcv (>= 1.8-13),
- rstantools (>= 1.0.0),
- bayesplot (>= 1.0.0),
+ rstantools (>= 1.1.0),
+ bayesplot (>= 1.1.0),
nlme,
coda,
abind,
View
@@ -1105,7 +1105,7 @@ pp_check.brmsfit <- function(object, type, nsamples, group = NULL,
if (!is.null(x) && length(x) != 1L) {
stop2("Argument 'x' must be of length 1.")
}
- ppc_funs <- lsp("bayesplot", what = "exports", pattern = "^ppc_")
+ ppc_funs <- as.character(bayesplot::available_ppc(""))
valid_ppc_types <- sub("^ppc_", "", ppc_funs)
if (!type %in% valid_ppc_types) {
stop2("Type '", type, "' is not a valid ppc type. Valid types are: \n",

0 comments on commit eeeb7ee

Please sign in to comment.