Ruben222
Ruben222

Reputation: 11

Unable to install R packages from source on a fresh R installation

I am trying to install rstan but am coming up with immense difficulty trying to install packages from source. I am currently running R version 4.3.0 (windows 11, 64 bit) and have installed rtools43.

To illustrate the problem, if I try and run this command:

install.packages("Rcpp", type="source")

I get this output:

Warning in install.packages : installation of package ‘Rcpp’ had non-zero exit status

I am completely stuck on this. I have tried reinstalling R, RStudio and rtools multiple times and I also tried installing an earlier version of R and rtools42. This also did not fix the problem. ChatGPT was also not much help here either.

If someone could help me troubleshoot this, I would be extremely grateful as I really could do with getting rstan working.

Upvotes: 1

Views: 628

Answers (0)

Related Questions