Skip to content

Commit 9915f56

Browse files
authored
Merge pull request #214 from lindeloev/patch-1
Default value in available_ppc()/available_mcmc()
2 parents ac7974f + e6c761e commit 9915f56

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

R/available-module-functions.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#' available_ppc("grouped")
1717
#' available_ppc("grouped", invert = TRUE)
1818
#'
19-
available_ppc <- function(pattern, fixed = FALSE, invert = FALSE) {
19+
available_ppc <- function(pattern = NULL, fixed = FALSE, invert = FALSE) {
2020
.list_module_functions("ppc",
2121
.pattern = pattern,
2222
fixed = fixed,
@@ -25,7 +25,7 @@ available_ppc <- function(pattern, fixed = FALSE, invert = FALSE) {
2525

2626
#' @rdname available_ppc
2727
#' @export
28-
available_mcmc <- function(pattern, fixed = FALSE, invert = FALSE) {
28+
available_mcmc <- function(pattern = NULL, fixed = FALSE, invert = FALSE) {
2929
.list_module_functions("mcmc",
3030
.pattern = pattern,
3131
fixed = fixed,
@@ -54,9 +54,6 @@ print.bayesplot_function_list <- function(x, ...) {
5454
invert = FALSE) {
5555

5656
.module <- match.arg(.module)
57-
if (missing(.pattern)) {
58-
.pattern <- NULL
59-
}
6057

6158
all_funs <- grep(
6259
pattern = paste0("^", .module, "_"),

0 commit comments

Comments
 (0)