Skip to content

Commit

Permalink
writeLines handling
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Mar 3, 2023
1 parent 498536c commit 1b11131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/rstan_config.R
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ rstan_config <- function(pkgdir = ".") {
(utils::packageVersion('rstan') < 2.29)) {
mod <- readLines(file_name)
if (!any(grepl("\\bfunctions(\\s*|)\\{", mod))) {
writeLines("functions {", mod, "}", sep = "\n", con = file_name)
writeLines(c("functions {", mod, "}"), sep = "\n", con = file_name)
}
}
stanc_ret <- rstan::stanc(file_name, allow_undefined = TRUE,
Expand Down

0 comments on commit 1b11131

Please sign in to comment.