Roxygen2 skipps.Rd generation

As the title says, I am having a problem generating R package documentation with roxygen2 . I am 99.9% positive to prepare everything as described here and here already. I know it’s almost impossible to get an answer to a simple remote diagnosis — it’s not, but I have to give it a shot.

This is what I see after using document()

> document()
Updating mypack documentation
Loading mypack 
Writing NAMESPACE
There were 7 warnings (use warnings() to see them)
> warnings()
Warning messages:
1: fun1.Rd not generated by roxygen2. Skipped.
2: fun2.Rd not generated by roxygen2. Skipped.
...

      

It seems that I installed correctly devtools

and roxygen2

- no errors with that.

If it matters: I have multiple .R files with multiple functions inside, but all functions have a description.

To verify and test the strange behavior, I used the exact examples of both pages - those were omitted too. What could be wrong here? Wild guessing is fine at the moment.

Thank!

+3


source to share


1 answer


This warning usually occurs because the files .Rd

already exist in the directory man

(did you create them manually, perhaps in an earlier version of your project?). roxygen2 does not replace them unless they start with a line indicating that they were auto-generated line by line:

% Generated by roxygen2 (4.1.0): do not edit by hand

      



To fix this problem, delete the files .Rd

in the directory man

and then run document()

.

+4


source







All Articles