R包构建错误

R package building error

我正在尝试构建 R 包。我通常 运行 Rstudio 中的清理和重建命令。我现在收到此错误消息:

==> 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 文件实际上在项目文件夹中,看起来没问题。提供一个可重现的例子有点困难,因为项目中的文件太多了。也许有人已经看到了这个错误。

结果是 roxygen 评论中缺少转义字符。

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