Skip to content

Commit

Permalink
Update R/JointModel.R
Browse files Browse the repository at this point in the history
Co-authored-by: Isaac Gravestock <[email protected]>
  • Loading branch information
gowerc and gravesti authored Jun 26, 2024
1 parent 851987a commit cc1d765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/JointModel.R
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ as.character.JointModel <- function(x, ...) {
#' @export
write_stan.JointModel <- function(object, destination) {
if (is_connection(destination)) {
return(writeLines(as.character(object), fi))
return(writeLines(as.character(object), con = destination))
}
fi <- file(destination, open = "w")
writeLines(as.character(object), fi)
Expand Down

0 comments on commit cc1d765

Please sign in to comment.