We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For external C++ files users can do this:
library(cmdstanr) stan_file <- "bernoulli_external.stan" mod <- cmdstan_model( stan_file, cpp_options = list(USER_HEADER="/home/rok/Desktop/testing/external/make_odds.hpp"), stanc_options = list("allow-undefined") ) data_list <- list(N = 10, y = c(0,1,0,0,0,0,0,0,0,1)) fit <- mod$sample(data = data_list)
The user_header right now needs to be absolute path. We could handle that automatically.
The text was updated successfully, but these errors were encountered:
@jgabry what do you think if we add a user_header argument to $compile() similar to how @WardBrian did it for cmdstanpy: stan-dev/cmdstanpy#464 (comment)
I like that solution. So it would simplify the above code to:
stan_file <- "bernoulli_external.stan" mod <- cmdstan_model( stan_file, user_header = "make_odds.hpp" )
Sorry, something went wrong.
@jgabry what do you think if we add a user_header argument to $compile() similar to how @WardBrian did it for cmdstanpy
I like it!
Successfully merging a pull request may close this issue.
For external C++ files users can do this:
The user_header right now needs to be absolute path. We could handle that automatically.
The text was updated successfully, but these errors were encountered: