Skip to content

Commit

Permalink
Merge pull request #1100 from stan-dev/js-lookup-error
Browse files Browse the repository at this point in the history
Fix js lookup syntax error
  • Loading branch information
andrjohns authored Oct 6, 2023
2 parents 0db6889 + 6ba98e9 commit cc2598a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rstan/rstan/R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ OUT <- 0
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)
if (!stanc_ctx$validate(stanc_js)) {
if (!file.exists(stanc_js)) {
stanc_js <- system.file("exec", "stanc.js", package = "rstan", mustWork = TRUE)
}
stanc_ctx$source(stanc_js)
Expand Down

0 comments on commit cc2598a

Please sign in to comment.