我正在尝试在R-Studio中安装'yaml'和'stringi'软件包,它不断给我这些错误:
> install.packages("stringi")
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘stringi’
These will not be installed
Run Code Online (Sandbox Code Playgroud)
要么
> install.packages('yaml')
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘yaml’
These will not be installed
Run Code Online (Sandbox Code Playgroud)
如何正确安装这些?
我在安装R版本3.5.0的data.table时遇到问题,并建议检查是否正确安装了RTools.
安装了RTools 3.5(这似乎是最新的)我输入了
find_rtools(T)
Run Code Online (Sandbox Code Playgroud)
我收到以下消息:
WARNING: Rtools is required to build R packages, but no version
of Rtools compatible with R 3.5.0 was found.
(Only the following incompatible version(s) of Rtools were found:3.4,3.5)
Please download and install the appropriate version of Rtools from
http://cran.r-project.org/bin/windows/Rtools/.
Run Code Online (Sandbox Code Playgroud)
所以一方面它看起来我安装了3.5,但它似乎认为有一个更新/不同的版本.
有什么想法吗?
我对R很陌生,所以对一个愚蠢的问题道歉.我正在尝试让rcpp运行,但我陷入无休止的R循环中,要求我重新安装RTools.
我广泛地关注了这篇博客文章中的代码,虽然第一次关闭我手动安装了所有东西,然后我重新安装了几次.我正在运行Windows 7,R版本3.1.2,R Studio版本0.98.1091(不是这应该很重要)和RTools 3.1.
我的控制台外观的编辑亮点如下:
> library(installr)
Welcome to installr version 0.15.3...
> install.Rtools()
Loading required package: devtools
No need to install Rtools - You've got the relevant version of Rtools installed
> find_rtools()
[1] TRUE
> library(Rcpp)
> evalCpp("1+1")
Error in sourceCpp(code = code, env = env, rebuild = rebuild, showOutput = showOutput, :
Error 65535 occurred building shared library.
Run Code Online (Sandbox Code Playgroud)
此时弹出一个对话框说:
安装构建工具为R编译C/C++代码需要安装其他构建工具.您想立即安装其他工具吗?
然后我被指示从头再次下载并重新安装RTools 3.1.
我已经看到这可能是PATH变量的问题,但我尝试了各种各样的事情,包括:
任何关于尝试的事情的想法都将被感激地接受!
编辑 …