I've tried for ages to install 'rsconnect' with the command
devtools::install_github('rstudio/shinyapps')
but failed with the message below.
Downloading GitHub repo rstudio/shinyapps#master
from URL https://api.github.com/repos/rstudio/shinyapps/zipball/master
Installing shinyapps
"C:/Program Files/R/R-3.2.3/bin/x64/R" --no-site-file --no-environ --no-save --no-restore CMD INSTALL \
"C:/Users/Flora/AppData/Local/Temp/RtmpsPtNWD/devtools20343ed16b87/rstudio-shinyapps-4dd3a9d" --library="C:/Program \
Files/R/R-3.2.3/library" --install-tests
Error: Command failed (1)
I've tried
devtools::install_github('rstudio/shinyapps')
also, but failed with the exactly same message.
Can anybody help me with this please?
Many thanks in advance! :)
Try this -
if (!require("devtools"))
install.packages("devtools")
devtools::install_github("rstudio/rsconnect")
Related
At the company I work for we are trying to advance our GTFS capabilities and I can across the GTFSR library, which got me very excited!
Being quite new to R it took me awhile to figure out I needed to install devtools, unfortunately, even after installing devtools, I get the following error:
devtools::install_github('ropenscilabs/gtfsr')
Downloading GitHub repo ropenscilabs/gtfsr#master
from URL
https://api.github.com/repos/ropenscilabs/gtfsr/zipball/master
Installing gtfsr Downloading GitHub repo rstudio/leaflet#master from
URL https://api.github.com/repos/rstudio/leaflet/zipball/master
Installing leaflet "C:/PROGRA~1/R/R-34~1.4/bin/x64/R" --no-site-file
--no-environ --no-save --no-restore --quiet CMD INSTALL \ "C:/Users/Username/AppData/Local/Temp/RtmpMr0ZUc/devtools2b9c242555c/rstudio-leaflet-6aa608f"
--library="C:/Program \ Files/R/R-3.4.4/library" --install-tests
In R CMD INSTALL Installation failed: Command failed (65535)
"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" --no-site-file --no-environ
--no-save --no-restore --quiet CMD INSTALL \ "C:/Users/Username/AppData/Local/Temp/RtmpMr0ZUc/devtools2b9c2a431852/ropensci-gtfsr-3af920a"
--library="C:/Program \ Files/R/R-3.4.4/library" --install-tests
In R CMD INSTALL Installation failed: Command failed (65535)
library(gtfsr)
Error in library(gtfsr) : there is no package called ‘gtfsr’
I never did determine what the issue was but I ended up uninstalling RStudio (and all packages) and reinstalled. I installed GTFSR by itself and it worked fine.
I wonder if maybe I had a conflicting package or an unsupported version.
Thanks everyone.
I get the following error message when trying to install package "rChart" in R:
**Installation failed: cannot change working directory**
Somebody advised me to install "Rcpp" before "rChart". So I did so.
However, it is still same before.
> install_github("saurfang/rCharts", ref = "utf8-writelines")
Downloading GitHub repo saurfang/rCharts#utf8-writelines
from URL https://api.github.com/repos/saurfang/rCharts/zipball/utf8-writelines
Installing rCharts
"C:/PROGRA~1/R/R-34~1.2/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \
"C:/Users/Administrator/AppData/Local/Temp/RtmpCYR9NS/devtools246c28fe1bc3/saurfang-rCharts-e0106ed" \
--library="C:/Users/Administrator/Documents/R/win-library/3.4" --install-tests
**Installation failed: cannot change working directory**
I am trying to install rPython but I get the following error about the scrdir installation. The scr file (makevars.win), as well as the configure.win file have the same path.
The path I am using is:
#!/bin/sh
echo PKG_LIBS=-LD:/Programs/Python27/libs -lpython27
echo PKG_CFLAGS=-I"D:/Programs/Python27/include"
And this is the error I get on R.
install("D:/Programs/R-3.4.2/library/rPython")
Installing rPython
"D:/Programs/R-3.4.2/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \
"D:/Programs/R-3.4.2/library/rPython" --library="D:/Programs/R-3.4.2/library" --install-tests
ERROR: cannot install to srcdir for package 'rPython'
* removing 'D:/Programs/R-3.4.2/library/rPython'
Error: Command failed (1)
I am using a windows 10 machine 64 bits. Any suggestions?
I managed to solve this issue by adding "C:/Rtools" to the variable Path in the "environment variables" of my computer.
I want to create an R package and downloaded Rtools and packages c("devtools", "roxygen2", "testthat", "knitr"). Now I check if everything is alright:
library(devtools)
has_devel()
and it's not, I get the error:
"C:/Users/xxx/DOCUME~1/R/R-33~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore \
--quiet CMD SHLIB foo.c
Warning message:
running command 'make -f "C:/Users/XYZ/DOCUME~1/R/R-33~1.1/etc/x64/Makeconf" -f "C:/Users/XYZ/DOCUME~1/R/R-33~1.1/share/make/winshlib.mk" SHLIB="foo.dll" WIN=64 TCLBIN=64 OBJECTS="foo.o"' had status 127
Error: Command failed (1)
I use Windows and the freshest RStudio.
Do you know what it means or how to repair it?
lol I have just ran this code:
install.packages("devtools")
library(devtools)
install_github("hadley/devtools")
devtools::build_github_devtools()
find_rtools()
has_devel()
build_github_devtools()
from
https://github.com/hadley/devtools/issues/1219
and now has_devel returns TRUE :O :D
Not sure if this would work for you, in a previous time I changed the R executable to run as administrator. (don't do that!) I went to
C:\Program Files\R\R-3.4.1\bin\x64 and right clicked the R executable. go to compatability mode, deselect run as administrator.
Everything works again.
I'm trying to install h2oEnsemble package on R 3.2.3. I have H2O 3.10.0.8 package. When I write these commands:
library(devtools)
install_github("h2oai/h2o-3/h2o-r/ensemble/h2oEnsemble-package")
I get the next error:
Downloading GitHub repo h2oai/h2o-3#master
from URL https://api.github.com/repos/h2oai/h2o-3/zipball/master
Installing h2oEnsemble
"C:/Program Files/R/R-3.2.3/bin/x64/R" --no-site-file --no-environ --no-save \
--no-restore --quiet CMD INSTALL \
"C:/Users/User/AppData/Local/Temp/Rtmpi0Q2AV/devtools9583548338a/h2oai-h2o-3-a0a4bbc/h2o-r/ensemble/h2oEnsemble-package" \
--library="C:/Users/User/Documents/R/win-library/3.2" --install-tests
"C:\Program" Ҝ пү«пҜвбп үгваҜҜ© Ё«Ё үҜиҜ©
Ө®¬ ¤®©, ЁбÜ®«пҜ¬®© Üа®Ҹа ¬¬®© Ё«Ё Ü ӨҜвл¬ д ©«®¬.
Error: Command failed (1)
Please, help me to solve this problem. Thanks.
It seems, your error is :
'C:\Program' is not recognized as an internal or external command,
operable program or batch file. Error: Command failed (1)
It happens due to the space character in location path (C:\Program Files) path. According to the documentation,
If you want to be able to build packages from sources, we recommend that you choose an
installation path not containing spaces.
Please refer the link : How do I install R for Windows?
Try changing the installation location. Then it should work fine.