I try to install an R package multidplyr
(which is currently not available from
CRAN) from github. I followed this link.
I first install.packages("devtools")
, then library(devtools)
, then devtools::install_github("hadley/multidplyr")
. But it generates the error message
Downloading GitHub repo hadley/multidplyr@master
from URL https://api.github.com/repos/hadley/multidplyr/zipball/master
Installing multidplyr
"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" --no-site-file --no-environ --no-save --
no-restore --quiet CMD INSTALL \
"C:/Users/FTXX/AppData/Local/Temp/RtmpEpOeM9/devtools34805943869/hadley-multidplyr-0085ded" \
--library="C:/Users/FTXX/Documents/R/win-library/3.4" --install-tests
Installation failed: Command failed (65535)
How to fix this problem? I found that if the package is on CRAN, then the system has no problem with install.packages("abc")
, but as long as it needs to install packages from github, it has this problem. I also tried to install other packages from github, it also has the same problem.
I've followed this instructions to installed the Rtools
(latest version). However, this problem of install packages from github still there. And I also found this instruction to first download the source zip package multidplyr-master.zip
and unzip it into the local folder where all R packages stored and run
source <- devtools:::source_pkg("C:/Users/FTXX/Documents/R/win-
library/3.4/multidplyr-master")
install(source)
However, it reports similar error
Installing multidplyr
"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" --no-site-file --no-environ --no-save --
no-restore --quiet CMD INSTALL \
"C:/Users/FTXX/Documents/R/win-library/3.4/multidplyr-master" \
--library="C:/Users/FTXX/Documents/R/win-library/3.4" --install-tests
Error: Command failed (65535)
My R information is
R.version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 3
minor 4.1
year 2017
month 06
day 30
svn rev 72865
language R
version.string R version 3.4.1 (2017-06-30)
nickname Single Candle