Fail to install R packages

Hi, Chloe-

Thanks for those pointers.

Re. Step 2: I wonder if that failed because the sudo .. from the first line required a password, and so having additional commands in that code block weren't interpreted correctly. I would have thought the terminal would have a long enough lockout time for the password that it would accept it immediately. You solution of doing the file entry in a single step gets around that potential issue, which is great.

Re. Step 3: I didn't know a separate public key would be needed---thanks for sorting that out, too.

At that point, you should be able to have the R version that is needed---I see it is v4.4.3, which is fine for the Matrix package. I'm surprised that several packages are not installed. Can you please try this:

  • From this post, I wonder if we also have to add libgsl-dev to the OS:

     sudo apt-get install libgsl-dev
    
  • Then try the package installer script again

    rPkgsInstall -pkgs ALL
    

If that doesn't work, then please try starting R and running the installs like this:

install.packages("Matrix", dependencies = TRUE)
install.packages("reformulas", dependencies = TRUE)
install.packages("lme4", dependencies = TRUE)
install.packages("afex", dependencies = TRUE)
install.packages("rstan", dependencies = TRUE)
install.packages("phia", dependencies = TRUE)

--pt