install.packages("gmodels")
Installing package into ‘/home/admin/R/x86_64-redhat-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘gtools’, ‘gdata’
==================================================
downloaded 192 KB
trying URL 'https://cran.rstudio.com/src/contrib/gdata_2.18.0.tar.gz'
Content type 'application/x-gzip' length 1058430 bytes (1.0 MB)
downloaded 1.0 MB
trying URL 'https://cran.rstudio.com/src/contrib/gmodels_2.18.1.tar.gz'
Content type 'application/x-gzip' length 33783 bytes (32 KB)
downloaded 32 KB
- installing source package ‘gtools’ ...
** package ‘gtools’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
Warning: R include directory is empty -- perhaps need to install R-devel.rpm or similar
gcc -m64 -I"/usr/include/R" -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c gtools_load.c -o gtools_load.o
In file included from gtools_load.c:1:
gtools.h:1:10: fatal error: R.h: No such file or directory
#include <R.h>
^~~~~
compilation terminated.
make: *** [/usr/lib64/R/etc/Makeconf:167: gtools_load.o] Error 1
ERROR: compilation failed for package ‘gtools’ - removing ‘/home/admin/R/x86_64-redhat-linux-gnu-library/3.6/gtools’
Warning in install.packages :
installation of package ‘gtools’ had non-zero exit status
ERROR: dependency ‘gtools’ is not available for package ‘gdata’ - removing ‘/home/admin/R/x86_64-redhat-linux-gnu-library/3.6/gdata’
Warning in install.packages :
installation of package ‘gdata’ had non-zero exit status
ERROR: dependency ‘gdata’ is not available for package ‘gmodels’ - removing ‘/home/admin/R/x86_64-redhat-linux-gnu-library/3.6/gmodels’
Warning in install.packages :
installation of package ‘gmodels’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpdXEFzQ/downloaded_packages’
i am unable to install this package. no clue how should i proceed further