Compilation ERROR - brms and stan model

Maybe just delete it from the ~/.Rprofile file?

No go.

fit ← stan(file = ‘./code/8schools.stan’, data = schools_dat,

  •         iter = 1000, chains = 4)
    

Error in if (grepl(pattern, makefile_txt[i])) { :
argument is of length zero

But rstan installs from GitHub?

I get the same. (reinstalled StahHeaders first)

devtools::install_github(“stan-dev/rstan”, ref = “develop”, subdir = “rstan/rstan”)
Downloading GitHub repo stan-dev/rstan@develop
/Rtools/bin/tar: stan-dev-rstan-d96845d/StanHeaders/inst/include/libsundials: Cannot create symlink to ‘mathlib/lib/sundials_3.1.0/’: No such file or directory
/Rtools/bin/tar: stan-dev-rstan-d96845d/StanHeaders/inst/include/src: Cannot create symlink to ‘upstream/src/’: No such file or directory
/Rtools/bin/tar: stan-dev-rstan-d96845d/StanHeaders/inst/include/stan: Cannot create symlink to ‘mathlib/stan/’: No such file or directory
/Rtools/bin/tar: Exiting with failure status due to previous errors
External tar failed with --force-local, trying without
/Rtools/bin/tar: stan-dev-rstan-d96845d/StanHeaders/inst/include/libsundials: Cannot create symlink to ‘mathlib/lib/sundials_3.1.0/’: No such file or directory
/Rtools/bin/tar: stan-dev-rstan-d96845d/StanHeaders/inst/include/src: Cannot create symlink to ‘upstream/src/’: No such file or directory
/Rtools/bin/tar: stan-dev-rstan-d96845d/StanHeaders/inst/include/stan: Cannot create symlink to ‘mathlib/stan/’: No such file or directory
/Rtools/bin/tar: Exiting with failure status due to previous errors
These packages have more recent versions available.
Which would you like to update?

1: rlang (0.2.2 → 0.3.0) [CRAN]

Enter one or more numbers separated by spaces, or an empty line to cancel
1: