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

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

问题描述

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,这里是link 我之前也遇到过同样的问题,一旦你更新它就可以了.

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 包时找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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