Skip to content

Commit

Permalink
Merge pull request #1663 from andrjohns/fix-read-csv
Browse files Browse the repository at this point in the history
Fix creating stanfit from csv when rstan not loaded
  • Loading branch information
paul-buerkner authored May 28, 2024
2 parents b61d495 + 18415e3 commit cc258c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/backends.R
Original file line number Diff line number Diff line change
Expand Up @@ -979,8 +979,10 @@ read_csv_as_stanfit <- function(files, variables = NULL, sampler_diagnostics = N
}

# @stanmodel
cxxdso_class <- "cxxdso"
attr(cxxdso_class, "package") <- "rstan"
null_dso <- new(
"cxxdso", sig = list(character(0)), dso_saved = FALSE,
cxxdso_class, sig = list(character(0)), dso_saved = FALSE,
dso_filename = character(0), modulename = character(0),
system = R.version$system, cxxflags = character(0),
.CXXDSOMISC = new.env(parent = emptyenv())
Expand Down

0 comments on commit cc258c5

Please sign in to comment.