Skip to content

Commit ec5d9b3

Browse files
committed
Allow models with no parameters without fixed_param=TRUE (in CmdStan >= 2.36)
1 parent c681d32 commit ec5d9b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/model.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ sample <- function(data = NULL,
12081208
}
12091209
}
12101210

1211-
if (cmdstan_version() >= "2.27.0" && !fixed_param) {
1211+
if (cmdstan_version() >= "2.27.0" && cmdstan_version() < "2.36.0" && !fixed_param) {
12121212
if (self$has_stan_file() && file.exists(self$stan_file())) {
12131213
if (!is.null(self$variables()) && length(self$variables()$parameters) == 0) {
12141214
stop("Model contains no parameters. Please use 'fixed_param = TRUE'.", call. = FALSE)

0 commit comments

Comments
 (0)