更新时间:2023-01-20 09:06:51
如果您在 Mac OS X 平台上使用 R,那么***了解从源代码安装的机制,因为 Mac 二进制文件有时制作起来很慢到存储库.R 生态系统是 Ubuntu 和 SVN.有一天它可能会变成 OS X 和 Git(我们可以希望,不是吗?)
If you are using R on the Mac OS X platform, then it's good to know the mechanics of installing from source, as Mac binaries are sometimes slow to make it to repositories. The R eco-system is Ubuntu and SVN. Someday it may morph to OS X and Git (we can hope, no?)
在开始从源代码安装之前,您需要确保已安装 Xcode.
Before you start installing from source, you need to make sure you have Xcode installed.
http://developer.apple.com/technologies/tools/xcode.html
那么你需要有一个fortran编译器,它不是Xcode自带的.好消息是,在 OS X 上有一个专门为 R 用户提供 Fortran 编译器的地方.
Then you need to have a fortran compiler, which doesn't come with Xcode. The good news is that there is a place devoted to fortran compilers on OS X for R users.
http://r.research.att.com/tools/
一旦安装和配置正确,您需要从这里从 RForge 获取 xts 的尖端版本:(感谢 Dirk)
Once this is installed and configured properly, you need to get the cutting-edge version of xts from RForge from here: (Thanks Dirk)
http://r-forge.r-project.org/src/contrib/xts_0.7-6.17.tar.gz
最后,只需从终端的命令行运行以下命令:
Finally, simply run the following from command-line in terminal:
[Downloads]$ R CMD INSTALL xts_0.7-6.17.tar.gz
注意:tar.gz 是源文件的扩展名,而 .tgz 是 Mac 二进制文件的扩展名.
NOTE: tar.gz is the extension for source files while .tgz is the extension for Mac binaries.