如何从 Windows 上的源 tarball 安装 R 包? [英] How do I install an R package from the source tarball on windows?

查看:49
本文介绍了如何从 Windows 上的源 tarball 安装 R 包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

R预测包已更新到版本2.12,但目前 CRAN 上只有适用于 2.11 的 Windows 二进制文件.

The forecast package for R has been updated to version 2.12, but there are currently only windows binarys for 2.11 available on CRAN.

如何从 安装 R 包来源在Windows上?

How do I install an R package from the source on Windows?

推荐答案

我知道这是一个老问题,但它首先出现在我在 Google 搜索相同的问题中,即使我知道答案我只是想复制一些东西和粘贴.这使得值得改进答案以供将来参考.所以这对我有用:

I know this is an old question but it came up first in my Google search for this same question, even though I knew the answer I just wanted something to copy and paste. Which makes it worth improving the answer for future reference. So here is what works for me:

安装 rtools,然后:

install.packages(path_to_file, repos = NULL, type="source")

这篇关于如何从 Windows 上的源 tarball 安装 R 包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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