[R] Ubuntu sources file for R packages
Naresh Gurbuxani
n@re@h_gurbux@n| @end|ng |rom hotm@||@com
Sat Aug 29 16:49:40 CEST 2026
This worked. Thanks
On 8/29/26 10:01, Robert Dorazio wrote:
> Naresh,
>
> The instructions given at https://cran.r-project.org/bin/linux/ubuntu/
> for installing R on Ubuntu work well.
>
> However, for installing R packages I recommend the following approach.
>
> 1. Download the shell script for your version of Ubuntu (e.g.,
> add_cranapt_resolute.sh for Ubuntu 26.04) from
> the r2u website: https://github.com/eddelbuettel/r2u
>
> 2. Run the shell script from the terminal as follows:
> sudo su
> bash add_cranapt_resolute.sh
> exit
>
> Then you have two options for installing R packages from the fast,
> well-connected mirror r2u.stat.illinois.edu
> <https://r2u.stat.illinois.edu/>
>
> As an example, you can install the R package "sp" using either of the
> following options:
>
> 1. From the terminal: sudo apt install r-cran-sp
>
> 2. From R: install.packages("sp")
>
> A big advantage of using r2u is that all dependencies of each package
> are downloaded properly.
>
> Robert Dorazio
>
>
>
> On Sat, Aug 29, 2026 at 5:50 AM Naresh Gurbuxani
> <naresh_gurbuxani using hotmail.com> wrote:
>
> I followed these instructions to install R on my new Ubuntu desktop.
>
> https://cran.r-project.org/bin/linux/ubuntu/
>
>
> To install additional packages, I am following these instructions:
>
> https://cran.r-project.org/bin/linux/ubuntu/fullREADME.html
>
>
> For Ubuntu 26.04 (Resolute Racoon), /etc/apt/sources.list is
> deprecated. It seems I need to create a file in
> /etc/apt/sources.list.d/. I started a file "r-package.sources"
> and need
> entries for the last two fields. My file:
>
> ## R package repository
> Types: deb
> URIs: https://cloud.r-project.org/bin/linux/ubuntu
> Suites: resolute-cran40
> Components:
> Signed-By:
>
> It will also benefit other users if you can update the
> instructions in
> fullREADME.html
>
>
> Thanks,
>
> Naresh
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> https://www.R-project.org/posting-guide.html
> <https://www.R-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]
More information about the R-help
mailing list