我正按照以下说明下载shinyapps软件包: http://shiny.rstudio.com/articles/shinyapps.html
但我有一些错误。
我在Windows 64位上;我的R版本是R x64 3.2.1;我的RStudio版本是0.99.447。
在这里你可以找到我使用的命令:
if (!require("devtools"))
install.packages("devtools")
devtools::install_github("rstudio/shinyapps")
devtools
包似乎已正确安装,但我收到以下错误:
Downloading github repo rstudio/shinyapps@master
Installing shinyapps
"C:/PROGRA~1/R/R-32~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore CMD INSTALL \
"C:/Users/myname/AppData/Local/Temp/RtmpsbU7D7/devtools112063ad32a2/rstudio-shinyapps-688a4ac" \
--library="\\someadress/R/win-library/3.2" --install-tests
* installing *source* package 'shinyapps' ...
** R
** inst
** tests
** 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) :
there is no package called 'shinyapps'
Error: loading failed
Execution halted
*** arch - x64
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
there is no package called 'shinyapps'
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing '\\someadress/Users/myname/Documents/R/win-library/3.2/shinyapps'
Error: Command failed (1)
我还尝试从github(shinyapps-master.zip)手动下载软件包,解压缩文件夹并将文件夹复制到R库文件夹中。首先,文件夹不是shinyapps而是shinyapps-master;我试图将库调用为shinyapps
和shinyapps-master
,但没有成功。你有什么建议吗?