在 Ubuntu Lucid 中从二进制安装 R 包

发布于 2024-09-25 09:03:35 字数 238 浏览 4 评论 0原文

我已经使用以下命令在 Ubuntu Lucid 中安装了 R

sudo aptitude 安装 r-base

当我尝试“install.packages”时,它似乎下载源代码,然后花费很长时间编译它。我怎样才能像我在 Windows 上习惯的那样只下载并安装二进制文件?

需要自己编译包吗?我在虚拟机内运行,因此尽可能保持精简会很棒。

谢谢

I've installed R in Ubuntu Lucid with the command

sudo aptitude install r-base

When I try to "install.packages" it seems to download source and then spend ages compiling it. How can I get it to just download and install the binaries, like I'm used to on Windows?

Is there any need to compile the packages myself? I'm running inside a VM so it would be great to keep things as slim as possible.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

离去的眼神 2024-10-02 09:03:35

CRAN 仅分发 Unix 源代码,换句话说,不提供二进制文件(与 Windows 不同)。因此,您只需在本地编译软件包即可。

也就是说,我们已经在一个将 CRAN 源代码包转换为 Debian 二进制包的系统上工作了几年——参见 cran2deb / debian.cran.r-project.org。我们目前构建了用于 Debian 测试的 i386 二进制文件,并且正在重写后端以再次为 Debian 提供 amd64,然后最终为 Ubuntu 提供 i386 和 amd64。这已经提供了超过两千个二进制包,但还没有提供我们最终希望支持的所有风格。

这个目标是否以及何时能够实现还很难说。这是一项志愿者工作,主要开发人员(查尔斯)最近丢失了他的笔记本电脑。

CRAN only distributes source for Unix, in other words no binaries are offered (unlike for Windows). So you simply have to compile the packages locally.

That said, we have been working for a few years now on a system to turn CRAN source packages into Debian binary packages -- see cran2deb / debian.cran.r-project.org. We currently build i386 binaries for Debian testing and are in the process of rewriting the backend to offer amd64 for Debian again and then eventually i386 and amd64 for Ubuntu. This already offers well over two-thousand binary packages but not yet for all the flavours we would like to support eventually.

If and when that goal will be accomplished is hard to say; this is a volunteer effort and the main developer (Charles) recently lost his laptop.

我只土不豪 2024-10-02 09:03:35

CRAN 软件包在 Ubuntu 软件包存储库中可用,但仅在 Ubuntu 更新时才使用 CRAN 进行更新。如果您想使用最新的 CRAN 版本的软件包,但存储库不是同一版本,您将需要完成编译/安装过程。

Ubuntu R 软件包中的详细信息可以在 CRAN 上找到,它应该会给你您需要的所有信息。

由于这(提供二进制文件)全部是 CRAN 维护者、R Core 和社区其他忠实成员(例如 Debian 和 Ubuntu 软件包的 Dirk、Vincent 和 Michael)的志愿者努力,所以主要工作已经投入到为自编译更加困难的系统提供二进制文件,因为所需的工具不容易获得,这与 Linux 不同。

CRAN packages are available in the Ubuntu package repository, but are updated with CRAN only when Ubuntu is updated. If you want to use the latest CRAN version of a package and the repository is not at the same version, you will need to go through the compilation/installation procedure.

Details in the Ubuntu R packages can be found on CRAN, which should give you all the information you require.

As this (the provision of binaries) is all volunteer effort on the part of the CRAN maintainers, R Core and other devoted members of the community (e.g. Dirk, Vincent and Michael for the Debian and Ubuntu packages), the main effort has gone into providing binaries for systems where self-compilation is more difficult as the necessary tools are not easily available, unlike on Linux.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文