R:“制造"从本地tar.gz安装R-package时找不到 [英] R: "make" not found when installing a R-package from local tar.gz

查看:1612
本文介绍了R:“制造"从本地tar.gz安装R-package时找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

R包ConvCalendar不再位于Cran存储库中(请参阅这里). 但是,由于我已经在以前的项目中大量使用了此软件包,因此最好将其安装在我的计算机上,即使是较旧的版本也足够.

The R Package ConvCalendar is not on Cran repository anymore (see here). However, because I have intensively used this package for previous projects, it would be nice to have it installed on my machine, even an older version would suffice.

(Windows 10环境)

(Windows 10 environment)

在上面的链接中,可以从存档中下载ConvCalendar的旧版本.因此,我这样做了,并尝试通过运行来安装它(也已经安装并加载了devtools):

In the link above it is possible to download older versions of ConvCalendar from the archive. I thus did it, and tried installing it by running (having devtools also installed and loaded):

install.packages("ConvCalendar_1.2.tar.gz", repos=NULL, type="source")

但是,我收到以下错误消息:

However, I get the following error message:

> install.packages("ConvCalendar_1.0.tar.gz", repos=NULL, type="source")
Installing package into ‘C:/Users/myname/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
* installing *source* package 'ConvCalendar' ...
** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'ConvCalendar'
* removing 'C:/Users/myname/Documents/R/win-library/3.5/ConvCalendar'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘ConvCalendar_1.2.tar.gz’ had non-zero exit status

正在寻找解决此问题的方法.

Looking for a solution to this problem.

推荐答案

您需要更新Rtool,这是

what do you need is to update the Rtool, here is the link I had the same issue before once you update it will work.

这篇关于R:“制造"从本地tar.gz安装R-package时找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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