Can't install and use R package

Hello !

It’s a fresh R version 4.3.2 (2023-10-31) installation.

But I’m unable to install any package. The process is stopped and they are removed.

Manually unfolding the tar file in the library is useless. The r console doesn’t recognize them the packages anyway.

Erasing and reinstalling r is useless

Making a library path in the ~ is useless

Launching with sudo is also pointless.

Installing packages with R Studio dent work either.

It’s exacltly the same error message.

* installing *source* package ‘colorspace’ ...
** ‘colorspace’ package correctly unzipped and MD5 sums checked
** using staged installation
**libs
sh: line 1: make: command not found
Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"),:
   error when executing a command
* removing ‘/usr/lib/R/library/colorspace’
* installing *source* package ‘sys’ ...
** 'sys' package correctly unpacked and MD5 sums checked
** using staged installation
**libs
sh: line 1: make: command not found
Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"),:
   error when executing a command
* removing ‘/usr/lib/R/library/sys’

Thank you in advance and have a good day.

Installing how? It’s in repo.

Hello
with pacman

sudo pacman -S r

make is not installed?!

pamac install base-devel
1 Like

Your output and comments do not match what should happen when installing a regular package.

$ sudo pacman -Syu r
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (1) r-4.3.2-4

Total Download Size:   44.32 MiB
Total Installed Size:  70.36 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 r-4.3.2-4-x86_64                                                                   44.3 MiB  9.73 MiB/s 00:05 [##################################################################] 100%
(1/1) checking keys in keyring                                                                                 [##################################################################] 100%
(1/1) checking package integrity                                                                               [##################################################################] 100%
(1/1) loading package files                                                                                    [##################################################################] 100%
(1/1) checking for file conflicts                                                                              [##################################################################] 100%
(1/1) checking available disk space                                                                            [##################################################################] 100%
:: Processing package changes...
(1/1) installing r                                                                                             [##################################################################] 100%
Optional dependencies for r
    blas-openblas: faster linear algebra
    gcc-fortran: needed to compile some CRAN packages
    texlive-latex: latex sty files
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating the info directory file...
(3/3) Updating the desktop file MIME type cache...

Which obviously also worked here … so please try to better explain your situation.

PSs

Again, should not matter. If they were actually using pacman then it would not be compiling a darn thing.
Someone is not telling the truth :wink:

Hello thank you everyone for your answers.

Hello thank you everyone for your answers.

To clarify I installed R language with sudo

But I install R extension modules with R built in command (install packages)

https://wiki.archlinux.org/title/R

Thank you very much my R modules can be installed now.
My os lacked base devel.

Good to know. Maybe I choose an install a bit too basic.

Thank you I will keep this in mind.