在 Ubuntu Lucid 中从二进制安装 R 包 [英] Install R packages from binary in Ubuntu Lucid

查看:23
本文介绍了在 Ubuntu Lucid 中从二进制安装 R 包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I've installed R in Ubuntu Lucid with the command

sudo aptitude install r-base

sudo aptitude install r-base

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

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?

是否需要自己编译软件包?我在 VM 中运行,因此尽可能保持精简会很棒.

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.

谢谢

推荐答案

CRAN 只分发 Unix 的源代码,换句话说,不提供二进制文件(与 Windows 不同).所以你只需要在本地编译包.

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.

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

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.

这个目标是否以及何时实现还很难说;这是志愿者的努力,主要开发人员 (Charles) 最近丢失了他的笔记本电脑.

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.

这篇关于在 Ubuntu Lucid 中从二进制安装 R 包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆