0

Devtools is not building .Rd files in the man directory.

git clone https://github.com/az0/mlmeta
cd mlmeta
Rscript -e 'require(devtools);devtools::document()'

This gives

> require(devtools);document('mlmeta')
Loading required package: devtools
Updating mlmeta documentation
Loading mlmeta
First time using roxygen2 4.0. Upgrading automatically...

devtools 1.6.1 (latest from CRAN), R 3.0.2, Ubuntu 14.04

Andrew
  • 1,619
  • 3
  • 19
  • 24
  • I'm not sure why you're creating that file `document-mlmeta.R`? Why don't you just run `document()` from inside the root directory of the package, which I imagine would work. E.g. try this in the root of your pkg: `Rscript -e 'devtools::document()'` – sckott Dec 02 '14 at 14:52
  • @ScottChamberlain Thank you. I am updating the question with your elegant suggestion, but the problem remains. – Andrew Dec 02 '14 at 18:18
  • 1
    Looks like you have the wrong syntax. In your .R files use `#'` instead of the `#` followed by a backtick. You also need to name your man file in your `mlmeta.R` file, so add `@name mlmeta` in that file. after that it works for me – sckott Dec 02 '14 at 18:36
  • @ScottChamberlain Thank you. This solves the problem. The only tweak is with Rscript and some of the other .R files I also have to load the method library to avoid an obscure error. – Andrew Dec 02 '14 at 19:06

0 Answers0