[R-pkg-devel] Documenting S4 generic does not show usage

2016-03-19 Thread Manny Calavera
Good day to everyone, I have an issue when documenting an S4 generic. I have the following in my file generics.R: #' @rdname myfunction-methods#' @name myfunction <- without this, roxygen2 complaints about missing name#' @export methods::setGeneric("myfunction", function( arg1, arg2 ), arg

[R-pkg-devel] No reference output from knitr vignettes

2016-03-19 Thread Henric Winell
Hi, After having converted a couple of package vignettes from Sweave to knitr, I discovered that the reference output generated by R CMD check, i.e., .Rnw.log in the check directory, is now empty except for the timings. When doing the conversion I added knitr to DESCRIPTION's Suggests and V

Re: [R-pkg-devel] Documenting S4 generic does not show usage

2016-03-19 Thread Hadley Wickham
The problem seems to be your use of methods::setMethod instead of setMethod (etc). Roxygen2 doesn't seem to be quite smart enough to realise that these aren't equivalent. You might want to file an issue on github so I look into this the next time I'm working on roxygen2. Hadley On Fri, Mar 18, 20