Skip to content

Commit

Permalink
rstan.R: fix crash on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoodri committed Jan 12, 2017
1 parent b8e5401 commit 6a61721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rstan/rstan/R/rstan.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ stan_model <- function(file,
!is_sm_valid(obj) ||
(!identical(stanc_ret$model_code, obj@model_code) && is.null(
message("hash mismatch so recompiling; make sure Stan code ends with a blank line"))) ||
dirname(file.rds) == tempdir() &&
dirname(file.rds) == gsub("\\", "/", tempdir(), fixed = TRUE) &&
avoid_crash(obj@dso@.CXXDSOMISC$module) && is.null(
message("recompiling to avoid crashing R session"))) {

Expand Down

0 comments on commit 6a61721

Please sign in to comment.