Installing local package on R 3.2.2 failed - r

Installing an old version of caret on my custom R version was a burden.
I tried using the RStudio installation tool, but failed
I tried the command:
pathToFile <- "C:/Users/Fsociety/Desktop/caret_5.17-7.tar"
install.packages(pathToFile,repos = NULL, type = "source")
I got this error:
Warning: invalid package 'C:/Users/Fsociety/Desktop/caret_5.17-7.tar'
Error: ERROR: no packages specified
Warning in install.packages :
running command '"C:/PROGRA~1/RRO/RRO-32~1.0/R-32~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\Fsociety\Documents\R\win-library\3.2" "C:/Users/Fsociety/Desktop/caret_5.17-7.tar"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/Fsociety/Desktop/caret_5.17-7.tar’ had non-zero exit status
Is there any thing wrong with the install.package that I can fix?

Related

Can't install library(Xgboost) for gpu in R (Windows 10)

I want to install the xgboost package for R with GPU support for Win10
I downloaded the tarball using this link https://github.com/dmlc/xgboost/releases/download/v1.6.0/xgboost_r_gpu_win64_1.6.0.tar.gz
I tried to manually install via the Rgui and I got this error
Warning in system("sh ./configure.win") : 'sh' not found
ERROR: configuration failed for package 'xgboost'
* removing 'C:/Users/adminos/Documents/R/win-library/4.0/xgboost'
Warning message:
In install.packages(files[tarballs], .libPaths()[1L], repos = NULL, :
installation of package ‘C:/Users/adminos/Downloads/xgboost_r_gpu_win64_1.6.0.tar.gz’ had non-zero exit status
So non-zero exit status lib wasn't installed.
How can I install Xgboost for GPU?
Please Help

Cannot install R packages on a Mac

I am trying to install packages (ANY!) in R on a Mac but it always gives me the same error:
Error in install.packages : type 'binary' is not supported on this platform
I have also tried using:
> install.packages("ggplot2_3.3.3.tar.gz", repos = NULL, type="source") Warning: invalid package ‘ggplot2_3.3.3.tar.gz’ Error: ERROR: no packages specified Warning in install.packages : installation of package ‘ggplot2_3.3.3.tar.gz’ had non-zero exit status
Did not have this problem before.
Can someone help me out please?
Thanks
Valentina

Install old version of DBI in R (2.5.0)

How to install DBI with R (version 2.5(windows))? I am unable to install DBI (0.2)
I used:
install.packages("DBI", repos="http://cran.r-project.org/src/contrib/Archive/DBI/DBI_0.2-0.tar.gz")
It gives error:
Warning in install.packages("DBI", repos = "http://cran.r-project.org/src/contrib/Archive/DBI/DBI_0.2-0.tar.gz") :
argument 'lib' is missing: using 'C:\Users\USER\Documents/R/win-library/2.7'
Warning: unable to access index for repository http://cran.r-project.org/src/contrib/Archive/DBI/DBI_0.2-0.tar.gz/bin/windows/contrib/2.7
Warning message:
package ‘DBI’ is not available
If i used the process used in the here(suggest as a duplicate question).
I get this error:
install.packages("http://cran.r-project.org/src/contrib/Archive/DBI/DBI_0.2-0.tar.gz",repos=NULL, type="source")
Warning in install.packages("http://cran.r-project.org/src/contrib/Archive/DBI/DBI_0.2-0.tar.gz", :
argument 'lib' is missing: using 'C:\Users\USER\Documents/R/win-library/2.7'
Can't locate R/Dcf.pm in #INC (#INC contains: C \PROGRA~2\R\R-27~1.0\share\perl; /usr/lib/perl5/5.8.8/msys /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/msys /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl .) at C:\PROGRA~2\R\R-27~1.0/bin/INSTALL line 23.
BEGIN failed--compilation aborted at C:\PROGRA~2\R\R-27~1.0/bin/INSTALL line 23.
Warning message:
In install.packages("http://cran.r-project.org/src/contrib/Archive/DBI/DBI_0.2-0.tar.gz", :
installation of package 'http://cran.r-project.org/src/contrib/Archive/DBI/DBI_0.2-0.tar.gz' had non-zero exit status
How to install old version of DBI in R?

Unable to install ggplot2 package in R on windows 8.1

I tried to install ggplot2 with following commands, but it can't install.
> library('ggplot2')
Error in library("ggplot2") : there is no package called ‘ggplot2’\
> install.packages('ggplot2', dependencies = T)
package ‘ggplot2’ is available as a source package but not as a binary
Warning in install.packages :
package ‘ggplot2’ is not available (as a binary package for R version 3.1.3)
>
Can you anybody advise what's going wrong?
When i use the command install.packages("ggplot2", type="source",dependencies = TRUE) I got following error
*** arch - i386
Warning: running command 'make -f "D:/R/R-31~1.3/etc/i386/Makeconf" -f "D:/R/R-31~1.3/share/make/winshlib.mk" SHLIB="acepack.dll" SHLIB_LIBADD='$(FLIBS)' OBJECTS="ace.o avas.o rlsmo.o"' had status 127
ERROR: compilation failed for package 'acepack'
* removing 'D:/R/R-3.1.3/library/acepack'
Warning in install.packages :
running command '"D:/R/R-31~1.3/bin/x64/R" CMD INSTALL -l "D:\R\R-3.1.3\library" C:\Users\surjya\AppData\Local\Temp\RtmpWyq9oh/downloaded_packages/acepack_1.3-3.3.tar.gz' had status 1
Warning in install.packages :
installation of package ‘acepack’ had non-zero exit status
Sometimes the mirrors take a long time to update, and they don't pick up the binaries of a package for a few days.
Try install.packages("ggplot2", type="source")
...which, from memory, often works on Windows.

Build R package on Mac for Windows

I develop a package under Mac and want to distribute it to my colleagues. I can build the package under Mac and can install it under Mac and 'most' of my colleagues Windows PCs. Some of these are Windows 7 and some are Windows 8. All of them use RStudio and different R Versions all above 3.1.
I have now one big Problem with one computer and can not figure out what to do.
When I try to install the package, I get the following message
install.packages("C:/Users/ncasasvi/Downloads/imbproteomicsr_0.1.6.tar.gz", repos = NULL, type = "source", lib="\\fs02/ncasasvi$/Dokumente/R/R-3.1.2/library")
Warning in install.packages :
'lib = "\fs02/ncasasvi$/Dokumente/R/R-3.1.2/library"' is not writable
'\\fs02\ncasasvi$\Dokumente'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
'\\fs02\ncasasvi$\DOKUME~1\R\R-31~1.2' is not recognized as an internal or external command,
operable program or batch file.
Warning in install.packages :
running command '"//fs02/ncasasvi$/DOKUME~1/R/R-31~1.2/bin/x64/R" CMD INSTALL -l "\\fs02\ncasasvi$\Dokumente\R\win-library\3.1" "C:/Users/ncasasvi/Downloads/imbproteomicsr_0.1.6.tar.gz"' had status 1
Warning in install.packages :
installation of package 'C:/Users/ncasasvi/Downloads/imbproteomicsr_0.1.6.tar.gz' had non-zero exit status
I copied now the complete package source, so all folders and files, to a Windows machine, installed Rtools and devtools there and build the package on the windows machine with the same problem...
Is there a way to geht a more precise error message, not just status one? I have no further Ideas.
I also sensed my file to win builder. It reported no error messages, but I also didn't got a 'new build package' from the website.
Hope some of you have some suggestions. Thanks in advance!
EDIT:
After changing the path to something without \\ at the beginning and trying to get rid of all the other error messages, I got this message:
> install.packages("C:/Users/ncasasvi/Downloads/imbproteomicsr_latest.tar.gz", repos = NULL, type = "source", lib=('U:/Dokumente/R/win-library/'))
Error: ERROR: no packages specified
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-31~1.2/bin/x64/R" CMD INSTALL -l "U:\Dokumente\R\win-library\" "C:/Users/ncasasvi/Downloads/imbproteomicsr_latest.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/ncasasvi/Downloads/imbproteomicsr_latest.tar.gz’ had non-zero exit status
In between, I had a partly success, but it still could not install the package. This was the output in between:
> install.packages("C:/Users/ncasasvi/Downloads/imbproteomicsr_latest (2).tar.gz", repos = NULL, type = "source")
Installing package into ‘\\fs02/ncasasvi$/Dokumente/R/win-library/3.1’
(as ‘lib’ is unspecified)
'\\fs02\ncasasvi$\Dokumente'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
* installing *source* package 'imbproteomicsr' ...
** R
** data
*** moving datasets to lazyload DB
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
no library trees found in 'lib.loc'
Error: loading failed
Execution halted
*** arch - x64
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
no library trees found in 'lib.loc'
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing '\\fs02/ncasasvi$/Dokumente/R/win-library/3.1/imbproteomicsr'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-31~1.2/bin/x64/R" CMD INSTALL -l "\\fs02\ncasasvi$\Dokumente\R\win-library\3.1" "C:/Users/ncasasvi/DOWNLO~1/imbproteomicsr_latest (2).tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/ncasasvi/DOWNLO~1/imbproteomicsr_latest (2).tar.gz’ had non-zero exit status

Resources