已经尝试安装 googleway 一个多星期了,但它无法正常工作。
我用过:install.packages("googleway", dependencies= T)'
install.packages("googleway",
repos=c("http://rstudio.org/_packages",
"http://cran.rstudio.com"))
我在我的包列表中看到它,但是当我尝试用library
它调用它时,会出现另一个包丢失的错误。包是:mime
jsonlite
Rcpp
尝试单独安装这些,但仍然..
sessionInfo()
R version 3.4.2 (2017-09-28)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.4.2 tools_3.4.2
今天尝试安装成功,library()
命令如下
library(googleway)
Error: package or namespace load failed for ‘googleway’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘shiny’
回到安装代码:
package ‘shiny’ successfully unpacked and MD5 sums checked
尝试单独安装'shiny'
,安装完成后出现以下错误消息:
Error: invalid version specification ‘NA’
In addition: Warning message:
In utils:::packageDescription(packageName, fields = "Version") :
no package 'knitr' was found
之后试图打电话给googleway:
library(googleway)
Error: package or namespace load failed for ‘googleway’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘htmltools’
我确实尝试安装knitr
,但当我打电话时我发现某个包丢失了googleway
请注意,我能够下载其他软件包并成功调用它们。