Skip to content

Commit af99454

Browse files
authored
Merge pull request #340 from stan-dev/update-available-ppc
remove deprecated functions from available_ppc()
2 parents 7f45740 + 0de7c85 commit af99454

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

R/available-module-functions.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ print.bayesplot_function_list <- function(x, ...) {
130130
)
131131
}
132132

133+
# remove deprecated functions
134+
return_funs <- setdiff(return_funs, "ppc_loo_pit")
135+
133136
structure(
134137
return_funs,
135138
class = c("bayesplot_function_list", "character"),

bayesplot.Rproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Version: 1.0
2+
ProjectId: 29d8864e-c5c0-432d-b2d6-5838fba2f8d2
23

34
RestoreWorkspace: Default
45
SaveWorkspace: Default

tests/testthat/test-available_ppc.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ test_that("available_ppc works", {
2828

2929
all_ppc_plots <- sort(grep("^ppc_", getNamespaceExports("bayesplot"), value = TRUE))
3030
all_ppc_plots <- grep("_data", all_ppc_plots, invert = TRUE, value = TRUE)
31+
all_ppc_plots <- setdiff(all_ppc_plots, "ppc_loo_pit") # remove deprecated
3132
expect_identical(as.character(a), all_ppc_plots)
3233

3334
b <- available_ppc("grouped")

0 commit comments

Comments
 (0)