Whenever I try to install new packages, I end up with an error. I am using the Settings>Configure Packages>Install path, end I am trying to install to /usr/lib/R/library. I am being asked for my root password and log in as such.
I am getting several error messages like this (in this case, it is the "Hmisc" package)
The downloaded packages are in
/tmp/Rtmp0PhefW/downloaded_packages
There were 17 warnings (use warnings() to see them)
>
system ("chown username /home/username/.rkward/package_archive/*")
chown: cannot access `/home/username/.rkward/package_archive/*': No such file or directory
> q ()
Any idea what I do wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Whenever I try to install new packages, I end up with an error. I am using the Settings>Configure Packages>Install path, end I am trying to install to /usr/lib/R/library. I am being asked for my root password and log in as such.
I am getting several error messages like this (in this case, it is the "Hmisc" package)
* Installing *source* package 'maps' ...
** libs
** arch -
gcc-4.2 -std=gnu99 -g -O2 Gmake.c -o Gmake
/bin/bash: gcc-4.2: command not found
make: *** [Gmake] Error 127
ERROR: compilation failed for package 'maps'
** Removing '/usr/lib/R/library/maps'
and in the end
The downloaded packages are in
/tmp/Rtmp0PhefW/downloaded_packages
There were 17 warnings (use warnings() to see them)
>
system ("chown username /home/username/.rkward/package_archive/*")
chown: cannot access `/home/username/.rkward/package_archive/*': No such file or directory
> q ()
Any idea what I do wrong?
You need to install the r-base-dev package. This pulls gcc as a dependency, which you need to compile packages.
Thanks a lot, that did the trick!! :)