I have a problem installing some packages and I know the problem is on my end.
I'm on a Mac, Ventura 13.3.1 OS, latest versions of R and RStudio.
Here is my code (quite simple):
remotes::install_github("stan-dev/cmdstanr")
devtools::install_github("rmcelreath/rethinking")
here is the error message:
Downloading GitHub repo stan-dev/cmdstanr@HEAD
── R CMD build ──────────────────────────────────────────────────────────────────────────
checking for file ‘/private/var/folders/66/6yy31gvd2ggdrcmn0v72j0z40000gn/T/Rtmpe1DO8E/remotes97c752247d2/stan-dev-cmdstanr-7036eee/DESCRIPTION’ ...
─ preparing ‘cmdstanr’:
checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
Omitted ‘LazyData’ from DESCRIPTION
─ building ‘cmdstanr_0.5.3.tar.gz’
Error: 3:49: unexpected string constant
3: if (Sys.getenv("RSTUDIO") == "1" && RSTUDIO_TERM")) &&
4: Sys.info()["
^
Execution halted
Warning: installation of package ‘/var/folders/66/6yy31gvd2ggdrcmn0v72j0z40000gn/T//Rtmpe1DO8E/file97c1d996812/cmdstanr_0.5.3.tar.gz’ had non-zero exit statusDownloading GitHub repo rmcelreath/rethinking@HEAD
Skipping 1 packages not available: cmdstanr
── R CMD build ──────────────────────────────────────────────────────────────────────────
checking for file ‘/private/var/folders/66/6yy31gvd2ggdrcmn0v72j0z40000gn/T/Rtmpe1DO8E/remotes97c17c66e2e/rmcelreath-rethinking-2f01a9c/DESCRIPTION’ ...
─ preparing ‘rethinking’:
checking DESCRIPTION meta-information
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ looking to see if a ‘data/datalist’ file should be added
─ building ‘rethinking_2.31.tar.gz’
Error: 3:49: unexpected string constant
3: if (Sys.getenv("RSTUDIO") == "1" && RSTUDIO_TERM")) &&
4: Sys.info()["
^
Execution halted
Warning: installation of package ‘/var/folders/66/6yy31gvd2ggdrcmn0v72j0z40000gn/T//Rtmpe1DO8E/file97c646b9a33/rethinking_2.31.tar.gz’ had non-zero exit status.
I uninstalled and reinstalled R this morning with same result. I tried installing on R (not RStudio) with same result.
Any ideas?
Many thanks.