我需要一个位于 Github 上的软件包。我知道有多种解决方案可以在 R 中安装该软件包。
我正在尝试在 Windows 服务器上安装该软件包。这是我尝试过的:
解决方案1(基于Vignette)
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'
我尝试了很多方法来解决这个问题:
- 重新安装Devtools,使用CRAN devtools版本
- 重新安装 R 和 Rstudio(以管理员身份安装最新版本)(错误:找不到构建所需的构建工具 https://stackoverflow.com/questions/35914339/error-could-not-find-build-tools-necessary-to-build)
但还是同样的错误...
所以我尝试了一种解决方法来在我的计算机上安装软件包:
解决方案二
- 从 (https://github.com/bmschmidt/wordVectors https://github.com/bmschmidt/wordVectors)
- 解压 ZIP 文件
但结果又报错:
library(devtools)
install("path/to/unzipped/file")
library("wordVectors")
Error there is no packages called wordVectors.
有人知道发生了什么事吗?我为这个问题苦苦挣扎了一整天。非常感谢帮助!谢谢!
EditRtools 也被(重新)安装(最新版本......)
Edit 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
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)