I get the following trying to install gpclib package in R 3.6.2:
Package which is only available in source form, and may need
compilation of C/C++/Fortran: ‘gpclib’
These will not be installed
I have already installed Rtools.
I tried with the code:
install.packages("gpclib")
Trying with
install.packages("gpclib", type="source")
the message is:
installing *source package 'gpclib' ...
** package 'gpclib' successfully unpacked and MD5 sums checked **
using staged installation ** libs *** arch - i386 Warning in system(cmd) :
'make' not found ERROR: compilation failed for package 'gpclib' *
removing 'C:/Users/Juan/Documents/R/win-library/3.6/gpclib'
Warning message: In install.packages("gpclib", type = "source") :
installation of package ‘gpclib’ had non-zero exit status*
Related
Hi so i'm trying to install R package "BRugs" and it is having an issue finding the Makeconf file. I do have Rtools installed
Sys.which("make")
make
"C:\\RBUILD~1\\4.2\\usr\\bin\\make.exe"
My R_HOME is located here
R.home(component = 'home')
[1] "C:/PROGRA~1/R/R-42~1.2"
But i guess this install can not find the MakeConf file within "etc" folder?
* installing *source* package 'BRugs' ...
** package 'BRugs' successfully unpacked and MD5 sums checked
** using staged installation
** libs
running 'src/Makefile.win' ...
Makefile.win:1: C:/PROGRA~1/R/R-42~1.2/etc/i386/Makeconf: No such file or directory
make: *** No rule to make target 'C:/PROGRA~1/R/R-42~1.2/etc/i386/Makeconf'. Stop.
ERROR: compilation failed for package 'BRugs'
* removing 'C:/Users/antho/AppData/Local/R/win-library/4.2.2/BRugs'
Warning in install.packages :
installation of package ‘BRugs’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\antho\AppData\Local\Temp\Rtmpo58u6i\downloaded_packages’
>
install.packages("C:/Users/antho/Downloads/BRugs_0.9-1.tar.gz", repos = NULL, type = "source")
Installing package into ‘C:/Users/antho/AppData/Local/R/win-library/4.2.2’
(as ‘lib’ is unspecified)
* installing *source* package 'BRugs' ...
** package 'BRugs' successfully unpacked and MD5 sums checked
** using staged installation
** libs
running 'src/Makefile.win' ...
Makefile.win:1: C:/PROGRA~1/R/R-42~1.2/etc/i386/Makeconf: No such file or directory
make: *** No rule to make target 'C:/PROGRA~1/R/R-42~1.2/etc/i386/Makeconf'. Stop.
ERROR: compilation failed for package 'BRugs'
* removing 'C:/Users/antho/AppData/Local/R/win-library/4.2.2/BRugs'
Warning in install.packages :
installation of package ‘C:/Users/antho/Downloads/BRugs_0.9-1.tar.gz’ had non-zero exit status
The error is related to this path "C:/PROGRA~1/R/R-42~1.2/etc/i386/"
list.dirs(paste0(R.home(component='home'),"/etc"))
[1] "C:/PROGRA~1/R/R-42~1.2/etc" "C:/PROGRA~1/R/R-42~1.2/etc/x64"
it looks like my etc folder is missing the expected "i386" folder? any suggestions will be greatly appreciated.
Do i need to edit my .Rprofile.site file?
I have used the chunk of code
packageurl <- "https://cran.r-project.org/src/contrib/Archive/DPpackage/DPpackage_1.1-7.tar.gz"
install.packages(packageurl, repos=NULL, type="source")
And also istalled rtools40.
But still receiving error message downloading the package--
installing source package 'DPpackage' ...
** package 'DPpackage' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'DPpackage'
removing 'C:/Users/user/Documents/R/win-library/4.1/DPpackage'
Warning in install.packages :
installation of package ‘C:/Users/user/AppData/Local/Temp/Rtmp0CbVQF/downloaded_packages/DPpackage_1.1-7.tar.gz’ had non-zero exit status
I am trying to install an archived R package, SciencesPo, but it's not installing, even after installing the dependencies. The following is the code and the messages that follow
install.packages("C:\Users\Overman\Downloads\SciencesPo_1.4.1.tar.gz", repos = NULL, type = "source")
Installing package into ‘C:/Users/Overman/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
* installing source package 'SciencesPo' ...
** package 'SciencesPo' successfully unpacked and MD5 sums checked
** libs
*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'SciencesPo'
* removing 'C:/Users/Overman/Documents/R/win-library/3.5/SciencesPo'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘C:/Users/Overman/Downloads/SciencesPo_1.4.1.tar.gz’ had non-zero exit status
Installing Rtools solved the problem.
Error installing package 'nlme':
installing source package 'nlme' ...
** package 'nlme' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Warning in system(paste(cmd, "shlib-clean")) : 'make' not found
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'nlme'
removing 'C:/Users/pp20325/Desktop/POC/KITE/KITE-R~1/BIOINF~1/renv/staging/1/nlme'
Error: install of package 'nlme' failed
R version 3.2.1
I downloaded gpclib_1.5-5.tar.gz from http://cran.r-project.org/web/packages/gpclib/index.html and attempted to install the package with
install.packages("D:/GIS/gpclib_1.5-5.tar.gz", repos = NULL, type = "source")
I get the error
* installing *source* package 'gpclib' ...
** package 'gpclib' successfully unpacked and MD5 sums checked
** libs
*** arch - i386
Warning: running command 'make -f "D:/R/R-3.2.1/etc/i386/Makeconf" -f "D:/R/R-3.2.1/share/make/winshlib.mk" SHLIB="gpclib.dll" OBJECTS="Rgpc.o gpc.o"' had status 127
ERROR: compilation failed for package 'gpclib'
* removing 'D:/R/R-3.2.1/library/gpclib'
Warning in install.packages :
running command '"D:/R/R-3.2.1/bin/x64/R" CMD INSTALL -l "D:\R\R-3.2.1\library" "D:/GIS/gpclib_1.5-5.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘D:/GIS/gpclib_1.5-5.tar.gz’ had non-zero exit status
How do I troubleshoot this?
Extra Information
I am ultimately trying to create heat maps, and am following this tutorial
http://spatialanalysis.co.uk/wp-content/uploads/2013/04/james_cheshire_ggplot_intro_blog.pdf
You'll need to install Rtools to install the R compiler libraries:
http://cran.r-project.org/bin/windows/Rtools/
Otherwise, R will have issues compiling from source code.