将ggvis更新为0.4.3后,我构建的闪亮应用程序不再有效。因此,当我运行以下代码时,我正在尝试将ggvis恢复为以前的版本:
foo <- "https://cran.r-project.org/src/contrib/Archive/ggvis/ggvis_0.4.2.tar.gz"
install.packages(foo, repos=NULL, type="source")
基于这篇文章:Installing older version of R package
这是控制台中的结果。我已经用&#34; company&#34;替换了目录中公司和用户的名称。和&#34;用户&#34;分别为自由裁量权。
Installing package into ‘\\company/user/R/win-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'https://cran.r-project.org/src/contrib/Archive/ggvis/ggvis_0.4.2.tar.gz'
Content type 'application/x-gzip' length 728345 bytes (711 KB)
downloaded 711 KB
'\\company\user'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
* installing *source* package 'ggvis' ...
** package 'ggvis' successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
Warning in file(con, "w") :
cannot open file '\\company/user/R/win-library/3.3/ggvis/doc/index.html': No such file or directory
Error in file(con, "w") : cannot open the connection
ERROR: installing vignettes failed
* removing '\\company/user/R/win-library/3.3/ggvis'
* restoring previous '\\company/user/R/win-library/3.3/ggvis'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.1/bin/x64/R" CMD INSTALL -l "\\company\user\R\win-library\3.3" "C:/Users/user/AppData/Local/Temp/RtmpuOIfA9/downloaded_packages/ggvis_0.4.2.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/user/AppData/Local/Temp/RtmpuOIfA9/downloaded_packages/ggvis_0.4.2.tar.gz’ had non-zero exit status
结果是ggvis保持为版本0.4.3。
我尝试使用完全相同的代码在Mac上运行相同版本的RStudio(3.3.1)的另一台机器上恢复到0.4.2,而不是我的Windows机器,它运行得很好。我不知道为什么我无法在我的机器上重新安装0.4.2的ggvis。 感谢