R软件包构建错误 [英] R package building error

查看:68
本文介绍了R软件包构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建R包。我通常在Rstudio中运行clean and rebuild命令。我现在收到此错误消息:

I am trying to build an R package. I usually run the clean and rebuild command in Rstudio. I am now getting this error message:

==> devtools::document(roclets=c('rd', 'collate', 'namespace', 'vignette'))

Updating ED2io documentation
Loading ED2io
Deleting grapes-equals-grapes.Rd
Writing NAMESPACE
Documentation completed

==> R CMD INSTALL --preclean --no-multiarch --with-keep.source EDio

* installing to library ‘/opt/local/Library/Frameworks/R.framework/Versions/3.3/Resources/library’
* installing *source* package ‘ED2io’ ...
** R
** preparing package for lazy loading
No man pages found in package  ‘ED2io’ 
** help
Error in .get_package_metadata(dir, FALSE) : 
  Files 'DESCRIPTION' and 'DESCRIPTION.in' are missing.
ERROR: installing Rd objects failed for package ‘ED2io’
* removing ‘/opt/local/Library/Frameworks/R.framework/Versions/3.3/Resources/library/ED2io’

Exited with status 1.

DESCRIPTION 文件实际上在项目文件夹中,看起来还可以。由于项目中文件太多,因此很难提供可复制的示例。也许有人已经看到此错误。

The DESCRIPTION file is actually in the project folder and seems ok. It's a bit hard to provide a reproducible example because there are so many files in the project. Maybe someone has already seen this error.

推荐答案

原来是 roxygen中缺少的转义字符评论。

#'@name%==%而不是
#'@name \%== \%

这篇关于R软件包构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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