RStudio: Building package with roxygen2. Not producing NAMESPACE file

和自甴很熟 提交于 2020-03-16 06:21:28

问题


This is my first time building an R package, and doing it with the help of devtools and roxygen2. After writing a simple func in the R directory and making a DESCRIPTION file with devtools, I try to build and reload for the first time but I get an error -

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

First time using roxygen2 4.0. Upgrading automatically...

Documentation completed

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

...

ERROR: a 'NAMESPACE' file is required

Which is odd because I have selected in my build configurations that roxygen2 should be making this for me. A man directory is made when building and reloading but nothing else.

来源:https://stackoverflow.com/questions/29981439/rstudio-building-package-with-roxygen2-not-producing-namespace-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!