Fail to load rstan

Hi there,

My computer got crashed last night and I forced to reboot it. After that, I could not load rstan and get the following error. Tried to uninstall it and reinstall, but still the same error.

Error: package or namespace load failed for ‘rstan’:
.onLoad failed in loadNamespace() for ‘processx’, details:
call: NULL
error: package ‘ps’ does not have a namespace

If your question relates to installation please provide the following information:

  • Operating System
    Windows 10 Pro
  • RStan Version
    latest one
  • Output of writeLines(readLines(file.path(Sys.getenv("HOME"), ".R/Makevars")))
    Error in file(con, “r”) : cannot open the connection
    In addition: Warning message:
    In file(con, “r”) :
    cannot open file ‘C:\Users\ZC\Documents/.R/Makevars’: No such file or directory
  • Output of devtools::session_info("rstan")
    Error: .onLoad failed in loadNamespace() for ‘processx’, details:
    call: NULL
    error: package ‘ps’ does not have a namespace

Can you uninstall and reinstall ps and processx? I haven’t seen this error before, but rstan says it can’t load those so seems worth trying.

1 Like

Thanks a lot. It worked.

2 Likes