DPpackage installation - r

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

Related

R installation of package "BRugs" is failing for Windows 11 64 bit installation

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?

How to install gpclib?

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*

R: Error when installing archived package manually

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.

Unable to install R package - Warning in system(cmd) : 'make' not found

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

Error while installing R packages

While trying to install the 'Rook' package in R i'm getting the following error:
** package ‘Rook’ successfully unpacked and MD5 sums checked
** libs
sh: 1: -f: not found
ERROR: compilation failed for package ‘Rook’
* removing ‘/usr/lib/R/site-library/Rook’
The downloaded packages are in
‘/tmp/RtmpPW6kC2/downloaded_packages’
Warning message:
In install.packages("Rook", repos = "http://cran.r-project.org") :
installation of package ‘Rook’ had non-zero exit status
I used both the install.packages() function and the terminal to install the package, but received the same message. Any ideas?
OS: Ubuntu 12.04.

Resources