-
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Package: rstan | ||
Type: Package | ||
Title: R Interface to Stan | ||
Version: 2.32.2 | ||
Version: 2.32.3 | ||
Authors@R: c(person("Jiqiang", "Guo", email = "[email protected]", role = "aut"), | ||
person("Jonah", "Gabry", email = "[email protected]", role = "aut"), | ||
person("Ben", "Goodrich", email = "[email protected]", role = c("cre", "aut")), | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,12 +23,11 @@ OUT <- 0 | |
if (requireNamespace("V8", quietly = TRUE)) { | ||
assign("stanc_ctx", V8::v8(), envir = topenv()) | ||
} else assign("stanc_ctx", QuickJSR::JSContext$new(stack_size = 4 * 1024 * 1024), envir = topenv()) | ||
stanc_js <- system.file("stanc.js", package = "StanHeaders", mustWork = TRUE) | ||
test <- try(stanc_ctx$source(stanc_js), silent = TRUE) | ||
if (inherits(test, "try-error")) { | ||
|
||
if (packageVersion("StanHeaders") == "2.26.28") { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bgoodri
Author
Contributor
|
||
stanc_js <- system.file("exec", "stanc.js", package = "rstan", mustWork = TRUE) | ||
stanc_ctx$source(stanc_js) | ||
} | ||
} else stanc_js <- system.file("stanc.js", package = "StanHeaders", mustWork = TRUE) | ||
stanc_ctx$source(stanc_js) | ||
assignInMyNamespace("rstan_load_time", value = Sys.time()) | ||
set_rstan_ggplot_defaults() | ||
assignInMyNamespace("RNG", value = get_rng(0)) | ||
|
@bgoodri Instead of hardcoding
"2.26.28"
version number, I'd compare the major version number of bothStanHeaders
andrstan
.