Hi all,
Adding some more details. Some other things I have tried…when I uninstall the xcode app, then enter macrtools:: is_xcode_installed() the response changes to TRUE but then when I put the xcode app back in, the response changes to FALSE. I’ve gone through and both my cmdstanr and rstan folders seem to be in the right directory. I have also made sure permissions were changed from ‘read’ to ‘read and write’ but still experiencing the issue. Below is the expanded error message. Any ideas? Hoping to try on a different machine this weekend to see if I have any better results but hoping maybe someone sees something I don’t.
Thanks
Compiling Stan program…
Error in process_initialize(self, private, command, args, stdin, stdout, …:
! Native call to processx_exec failed
Caused by error in chain_call(c_processx_exec, command, c(command, args), pty, pty_options, …:
! cannot start processx process ‘bin/stanc’ (system error 2, No such file or directory) @unix/processx.c:613 (processx_exec)
Type .Last.error to see the more details.
.Last.error
<c_error/rlib_error_3_0/rlib_error/error>
Error inprocess_initialize(self, private, command, args, stdin, stdout, …:
! Native call toprocessx_execfailed
Caused by error inchain_call(c_processx_exec, command, c(command, args), pty, pty_options, …:
! cannot start processx process ‘bin/stanc’ (system error 2, No such file or directory) @unix/processx.c:613 (processx_exec)
Backtrace:
- rethinking::ulam(alist(log_gdp_std ~ dnorm(mu, sigma), mu ← a[cid] + b[cid] * …
- cmdstanr::cmdstan_model(stan_file = filex[[1]], compile = filex[[3]], cpp_options = cpp_options, …
- CmdStanModel$new(stan_file = stan_file, exe_file = exe_file, …
- local initialize(…)
- self$compile(…)
- cmdstanr:::get_standalone_hpp(temp_stan_file, stancflags_standalone)
- withr::with_path(c(toolchain_PATH_env_var(), tbb_path()), wsl_compatible_run(command = stanc_cmd(), …
- base::force(code)
- cmdstanr:::wsl_compatible_run(command = stanc_cmd(), args = c(paste0(“–o=”, …
- base::do.call(processx::run, run_args)
- (function (command = NULL, args = character(), error_on_status = TRUE, …
- process$new(command, args, echo_cmd = echo_cmd, wd = wd, windows_verbatim_args = windows_verbatim_args, …
- local initialize(…)
- processx:::process_initialize(self, private, command, args, stdin, stdout, …
- processx:::chain_call(c_processx_exec, command, c(command, args), pty, pty_options, …
- | base::withCallingHandlers(do.call(“.Call”, list(.NAME, …)), error = function(e) { …
- | base::do.call(“.Call”, list(.NAME, …))
- | base::.handleSimpleError(function (e) …
- | local h(simpleError(msg, call))
- | processx:::throw_error(err, parent = e)