We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
define_pmt
1 parent a30e9f0 commit 7d5e273Copy full SHA for 7d5e273
R/pmt.R
@@ -231,7 +231,7 @@ define_pmt <- function(
231
if (typeof(statistic) == "closure") {
232
private$.statistic_func <- statistic
233
private$.compile()
234
- } else if (!is.character(statistic)) {
+ } else if (!is.character(statistic) || length(statistic) > 1) {
235
stop("'statistic' must be a closure or a character string")
236
} else {
237
impl <- paste0("impl_", inherit, "_pmt")
0 commit comments