当我尝试git-hub安装时,使用:
install_github('slidify', 'ramnathv')
但我得到了以下信息:
> install_github('slidify', 'ramnathv')
Installing github repo slidify/master from ramnathv
Downloading master.zip from https://github.com/ramnathv/slidify/archive/master.zip
Installing package from C:\Users\6E86~1\AppData\Local\Temp\RtmpYD4xRM/master.zip
Installing slidify
"C:/PROGRA~1/R/R-31~1.0/bin/i386/R" --vanilla CMD INSTALL "C:\Users\ \
ע\AppData\Local\Temp\RtmpYD4xRM\devtools1f901f6d4e5e\slidify-master" \
--library="C:/Program Files/R/R-3.1.0/library" --install-tests
Warning: invalid package 'C:\Users\ע\AppData\Local\Temp\RtmpYD4xRM\devtools1f901f6d4e5e\slidify-master'
Error: ERROR: no packages specified
Error: Command failed (1)
我还尝试了下载“slidify-master.zip”并使用以下方式安装它:
install.packages("c:/r/packages/slidify-master.zip", repos = NULL, type="source")
但似乎没有发生任何事情,并且未安装软件包:
> library(slidify)
Error in library(slidify) : there is no package called ‘slidify’
我的sessionInfo()是:
> sessionInfo()
R version 3.1.0 (2014-04-10)
Platform: i386-w64-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=Hebrew_Israel.1255 LC_CTYPE=Hebrew_Israel.1255
[3] LC_MONETARY=Hebrew_Israel.1255 LC_NUMERIC=C
[5] LC_TIME=Hebrew_Israel.1255
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] devtools_1.5
loaded via a namespace (and not attached):
[1] digest_0.6.4 evaluate_0.5.5 httr_0.3 memoise_0.2.1 parallel_3.1.0
[6] RCurl_1.95-4.1 stringr_0.6.2 tools_3.1.0 whisker_0.3-2
任何想法?
答案 0 :(得分:0)
当我尝试从Github安装其他软件包时,问题就出现了 似乎它必须使用用户名和存储下载的目录 我在Windows中创建了一个新用户,名称简单(没有空格,没有特殊字符),安装成功!