R包构建错误

时间:2016-10-19 16:05:29

标签: r build roxygen2 r-package

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

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

1 个答案:

答案 0 :(得分:0)

原来是roxygen评论中失踪的转义字符。

#' @name %==%代替 #' @name \%==\%