[R-sig-Debian] Installing packages

Michael Rutter m@rutter @end|ng |rom gm@||@com
Sun Apr 18 23:33:58 CEST 2021



On 4/18/21 5:17 PM, James Daly wrote:
> Hello,
> 
> I am a brand new Linux user running Ubuntu 20.04. Apologies if my question
> is extremely basic.
> 
> In R, I am having trouble downloading some packages (apaTables, apaStyle,
> OpenMx, MBESS, gsl). This post
> <https://blog.zenggyu.com/en/post/2018-01-29/installing-r-r-packages-e-g-tidyverse-and-rstudio-on-ubuntu-linux/>
> makes me think that the problem is that they reference non-R packages.
> However, I don't know what to do about it. Can anybody help me?
> 
> Any advice for a new Linux user would be appreciated, too! I am considering
> hopping to another distro, possibly Debian, once I get the hang of it.
> 
> Thanks,
> Jimmy

Jimmy,

I would highly recommend reading the web page about Ubuntu on CRAN, 
especially the section about using the c2d4u 4.0 repository.

https://cran.r-project.org/bin/linux/ubuntu/#get-5000-cran-packages

I would then install the bspm package (Bridge to System Package Manager) 
with (from the Ubuntu command line):

sudo apt install r-cran-bspm

This will utilize apt from within R whenever possible.

Michael



More information about the R-SIG-Debian mailing list