问题
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