尝试安装Googleway程序包时出错

时间:2017-10-09 14:44:56

标签: r googleway

一直试图安装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

时,我仍然发现某个包丢失了

请注意,我可以下载其他软件包并成功调用它们。

1 个答案:

答案 0 :(得分:0)

问题不在于googleway,因为其他软件包开始做同样的事情。

我卸载并重新安装R和Rstudio然后我使用此链接将R studio重置为桌面状态

https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-s-State