We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 277167c commit 0d5d50fCopy full SHA for 0d5d50f
1 file changed
rstan/rstan/R/expose_stan_functions.R
@@ -30,7 +30,7 @@ expose_stan_functions_hacks <- function(code, includes = NULL) {
30
code, sep = "\n")
31
code <- gsub("// [[stan::function]]",
32
"// [[Rcpp::export]]", code, fixed = TRUE)
33
- code <- gsub("stan::math::accumulator<double>& lp_accum__,(\\n)?(\\s*)?std::ostream\\*(\\n)?(\\s*)?pstream__(\\n)?(\\s*)?=(\\n)?\\s*)?(nullptr|0))(\\s*)?\\{",
+ code <- gsub("stan::math::accumulator<double>&(\\s*)?lp_accum__,(\\n)?(\\s*)?std::ostream\\*(\\n)?(\\s*)?pstream__(\\n)?(\\s*)?=(\\n)?\\s*)?(nullptr|0))(\\s*)?\\{",
34
"std::ostream* pstream__ = nullptr){\nstan::math::accumulator<double> lp_accum__;",
35
code)
36
code <- gsub("pstream__(\\s*|)=(\\s*|)nullptr", "pstream__ = 0", code)
0 commit comments