简体   繁体   English

安装旧的R软件包的二进制版本?

[英]Install binary version of old R packages?

I have an R script that was written by someone else that I need to run. 我有一个我需要运行的别人写的R脚本。 This script depends on another library (written by yet another person) that generates an error when the script is run. 该脚本依赖于另一个库(由另一个人编写),该库在运行脚本时会产生错误。 This all began after I updated my desktop to the newest Mac OSX, and subsequently updated to the newest R (and newer versions of these dependencies). 这一切都是在我将桌面更新为最新的Mac OSX之后开始的,随后又更新为最新的R(以及这些依赖关系的更新版本)。 I'm unable to compile this older version due to some compilers errors (error: unsupported directive '.stabs'), so a binary version seems like the easier way to go than to start digging deep into OPC as a novice R programmer. 由于某些编译器错误(错误:不支持的指令'.stabs'),我无法编译此较旧版本,因此,二进制版本似乎比开始作为R新手程序员更深入地研究OPC更为简单。 Is there a way to force R to install older versions of a binary library like there is for package managers for languages like Python and Ruby? 有没有一种方法可以强迫R安装二进制库的旧版本,例如用于软件包管理器的Python和Ruby语言?

So, what I ended up doing that worked fine was rsyncing my old installation from an old computer that had those libraries already installed. 因此,我最终做的很好,那就是从已经安装了这些库的旧计算机上同步旧安装。 Both were Mac OSX, but the older computer was still on the previous OS and R was compatible and the scripts do run now. 两者都是Mac OSX,但是较旧的计算机仍在以前的OS上,并且R是兼容的,并且脚本现在可以运行。

Also, I did find that if you don't reinstall R after you upgrade OS X, the installation is still valid, you just have to recreate the sym links or add the binary to your PATH. 另外,我确实发现,如果在升级OS X之后没有重新安装R,则安装仍然有效,您只需重新创建符号链接或将二进制文件添加到PATH。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM