无法在R中安装Github软件包

时间:2019-02-18 10:13:51

标签: r windows github install

我需要一个位于Github上的女巫包。而且我知道有多种解决方案可以在R中安装该软件包。

我正在尝试将该软件包安装在Windows服务器上。这是我尝试过的:

解决方案1(基于小插图)

install.packages("devtools")
library("devtools") 
devtools::install_github("bmschmidt/wordVectors")

Error: Could not find tools necessary to compile a package
In addition: Warning messages: 
1: In strptime(xx, f, tz = tz): unable to identify current timezone 'C': 
Please set environment variable 'TZ'

我尝试了很多方法来解决此问题:

  1. 重新安装Devtools,使用CRAN devtools版本
  2. 重新安装R和Rstudio(以管理员身份安装最新版本)(Error : Could not find build tools necessary to build

但仍然是相同的错误...

因此,我尝试了一种变通方法以在计算机上安装软件包:

解决方案二

  1. 从(https://github.com/bmschmidt/wordVectors)下载ZIP文件
  2. 解压缩ZIP文件

但是结果再次是错误:

 library(devtools) 
 install("path/to/unzipped/file") 
 library("wordVectors") 

Error there is no packages called wordVectors. 

有人知道发生了什么吗?我整天都在努力解决这个问题。非常感谢您的帮助!谢谢!

修改 还(重新)安装了Rtools(最新版本...)

编辑2 按照评论(@DJV)的要求:

> sessionInfo()  
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server >= 2012 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 
[2] LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets 
[6] methods   base     

loaded via a namespace (and not attached):
[1] compiler_3.5.2 tools_3.5.2 

0 个答案:

没有答案
相关问题