简体   繁体   English

我们可以在Linux下安装`.zip` R软件包吗?

[英]Can we install a `.zip` R package under linux?

I have found an old R package with a .zip extension on my PC. 我在PC上找到了一个带有.zip扩展名的旧R包。 I would like to run it, but I do not have the tar.gz that was used to create it and I use linux. 我想运行它,但是我没有用于创建它的tar.gz ,而是使用linux。 What are my options? 我有什么选择?

Few, essentially. 本质上很少。

A .zip package for R is almost surely a binary built for Windows so you need to find a suitable Windows computer -- or emulator -- to use it. 用于R的.zip软件包几乎肯定是为Windows构建二进制文件,因此您需要找到合适的Windows计算机(或仿真器)来使用它。

So, this can be done this way: 因此,可以通过以下方式完成此操作:

  • install wine (wine is not an emulator), 安装wine (葡萄酒不是模拟器),
  • install R for Windows , which you download manually from CRAN 安装Windows R ,您可以从CRAN手动下载
  • install the zip package using the usual commands ( install.packages("filename.zip",source=NULL) ). 使用常用命令( install.packages("filename.zip",source=NULL) )安装zip软件包。 You will probably get error messages for the dependencies, but incrementally installing those, it should work. 您可能会获得有关依赖项的错误消息,但是逐步安装这些错误消息应该可以。

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

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