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
Related
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
I've been trying to install Bchron for use with my dissertation data, and tibble is apparently one of the dependencies it needs. I'm fairly new to R so don't understand most of this, but I get pretty much the same error whether I try to install Bchron, tidyverse, or just tibble alone. Here's the error text (apologies if it's not conventionally formatted); any help would be appreciated:
Installing tibble [3.1.1] ...
FAILED
Error installing package 'tibble':
==================================
* installing to library ‘/Users/timdennehymac/Dropbox (Personal)/Dissertation/Chronology/Bchron3_TY/renv/staging/1’
* installing *source* package ‘tibble’ ...
** package ‘tibble’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘tibble’
* removing ‘/Users/timdennehymac/Dropbox
(Personal)/Dissertation/Chronology/Bchron3_TY/renv/staging/1/tibble’
Error: install of package 'tibble' failed [error code 1]
In addition: Warning messages:
1: /usr/bin/xcrun --find --show-sdk-path returned exit code 1
2: In system2(R(), args, stdout = TRUE, stderr = TRUE) :
running command ''/Library/Frameworks/R.framework/Resources/bin/R' CMD config CC 2>&1' had status 1
3: In if (eval(cond, envir = environment(dot))) return(eval(expr, envir = environment(dot))) :
the condition has length > 1 and only the first element will be used
4: In if (eval(cond, envir = environment(dot))) return(eval(expr, envir = environment(dot))) :
the condition has length > 1 and only the first element will be used
The tibble package was updated yesterday to version 3.1.1.
There is not yet any binary available for this version, even on the Rstudio CRAN mirror so you will need to compile the package yourself.
Since you appear to be running MacOS, you will need to install the Xcode command line tools in order to be able to build packages.
Open terminal.app and type the following command:
xcode-select --install
Follow the on screen prompts.
Once the command line utilities have been installed. Close R, restart and try again.
I'm running R 3.4.2 and R Studio 1.0.153. I want to install the prob package in R. The prob package in an archived file. It is located here. I am trying to install the prob_1.0-0.tar.gz package. I have no problem downloading and opening the package archive file. The code is below, it seems I need to install the fAsianOptions package.
ERROR: dependency 'fAsianOptions' is not available for package 'prob'
* removing 'C:/Users/blake_000/Documents/R/win-library/3.4/prob' Warning in install.packages : running command
'"C:/PROGRA~1/R/R-34~1.2/bin/x64/R" CMD INSTALL -l
"C:\Users\blake_000\Documents\R\win-library\3.4"
"C:/Users/BLAKE_~1/GOOGLE~1/Life/CSUEB/FALL20~1/6204-P~1/RCODE~1/prob_1.0-0.tar.gz"'
had status 1 Warning in install.packages : installation of package
‘C:/Users/BLAKE_~1/GOOGLE~1/Life/CSUEB/FALL20~1/6204-P~1/RCODE~1/prob_1.0-0.tar.gz’
had non-zero exit status
Unfortunately, the fAsianOptions package is also archived. It is located here and I downloaded version fAsianOptions_3010.79.tar.gz. There were a number of dependencies but I installed the required packages (timeDate, timeSeries, etc.)
However, the fAsianOptions package is not installing. The error code reads as follows:
install.packages("C:/Users/blake_000/Google Drive/Life/CSUEB/Fall
2017/6204- Probability/R Code/fAsianOptions_3010.79.tar.gz", repos =
NULL, type = "source") Installing package into
‘C:/Users/blake_000/Documents/R/win-library/3.4’ (as ‘lib’ is
unspecified)
* installing source package 'fAsianOptions' ...
** package 'fAsianOptions' successfully unpacked and MD5 sums checked
** libs
*** arch - i386 Warning: running command 'make -f "Makevars" -f "C:/PROGRA~1/R/R-34~1.2/etc/i386/Makeconf" -f
"C:/PROGRA~1/R/R-34~1.2/share/make/winshlib.mk"
SHLIB="fAsianOptions.dll" SHLIB_LIBADD='$(FLIBS)'
OBJECTS="EBMAsianOptions.o GammaFunctions.o
HypergeometricFunctions.o"' had status 127 ERROR: compilation failed
for package 'fAsianOptions'
* removing 'C:/Users/blake_000/Documents/R/win-library/3.4/fAsianOptions' Warning
in install.packages : running command
'"C:/PROGRA~1/R/R-34~1.2/bin/x64/R" CMD INSTALL -l
"C:\Users\blake_000\Documents\R\win-library\3.4"
"C:/Users/BLAKE_~1/GOOGLE~1/Life/CSUEB/FALL20~1/6204-P~1/RCODE~1/fAsianOptions_3010.79.tar.gz"'
had status 1 Warning in install.packages : installation of package
‘C:/Users/BLAKE_~1/GOOGLE~1/Life/CSUEB/FALL20~1/6204-P~1/RCODE~1/fAsianOptions_3010.79.tar.gz’
had non-zero exit status
I'm hoping that someone can help me to install the fAsianOptions dependency so I can install the prob package. Or, if there's an easier way, please let me know!
I had the same problem. I solved it by installing lower version of R -2.9. prob is available in repository for this version.
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?
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.