If you want to build R packages from source you need to have some build tools installed, i.e. sudo apt install build-essential
might be all that is needed. However, there are multiple ways to get binary packages for Ubuntu:
- Personally I install R using rig which automatically makes use of binaries provided by the public instance of Posit Package Manager
- You can use DEB packages from the c2d4u project, c.f. https://cran.r-project.org/bin/linux/ubuntu/fullREADME.html.
- You can use DEB packages from CRAN as Ubuntu Binaries - r2u
1 Like