Hi,
I would like to use the stan_survival function but I have troubles installing the rstanarm developer version.
I tried
Sys.setenv(MAKEFLAGS = "-j2")
Sys.setenv("R_REMOTES_NO_ERRORS_FROM_WARNINGS" = "true")
remotes::install_github("stan-dev/rstanarm", INSTALL_opts = "--no-multiarch", force = TRUE)
but it says:
“Error: Failed to install ‘rstanarm’ from GitHub:
System command ‘R’ failed, exit status: 1, stdout & stderr were printed”
I also tried:
install.packages("rstanarm", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
but receive the following message:
Warning in install.packages :
unable to access index for repository https://mc-stan.org/r-packages/bin/macosx/big-sur-arm64/contrib/4.1:
cannot open URL ‘https://mc-stan.org/r-packages/bin/macosx/big-sur-arm64/contrib/4.1/PACKAGES’
trying URL ‘http://cran.rstudio.com/bin/macosx/big-sur-arm64/contrib/4.1/rstanarm_2.21.3.tgz’
Content type ‘application/x-gzip’ length 43380289 bytes (41.4 MB)
I use R version 4.1.3 on macOS Monterey (v. 12.3.1) with an Apple M1 chip.
I would appreciate any suggestions!