Skip to content

Commit

Permalink
fix issue #1732
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-buerkner committed Jan 31, 2025
1 parent 75cde6a commit e10ab04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/stanvars.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ stanvar <- function(x = NULL, name = NULL, scode = NULL,
if (length(x) == 1L) {
scode <- paste0("int ", name)
} else {
scode <- paste0("int ", name, "[", length(x), "]")
scode <- paste0("array[", length(x), "] int ", name)
}
} else if (is.vector(x)) {
if (length(x) == 1L) {
Expand Down

0 comments on commit e10ab04

Please sign in to comment.