2

I'm using roxygen2 for documentation in S4 and for some reason the usage section is not showing up. I made a simple example to show my confusion:

#' Title
#'
#' @param x Temp
#'  
#' @return Nothing of interest.
#' 
#' @export 
#' @docType methods
#' @rdname A-methods
setGeneric("A", function(x, ...){
  cat("test\n")
  standardGeneric("A")
})

#' @rdname A-methods
#' @aliases A,ANY,ANY-method
setMethod("A", "ANY", function(x, ...){
  cat(class(x))
})

#END#
David B
  • 2,688
  • 18
  • 25
Andy
  • 282
  • 4
  • 8

1 Answers1

0

IMHO that is a common problem. You could try to use the s4 branch of roxygen. (For my small packages it works well.). To install the s4 branch from github:

library("devtools")
install_github("roxygen", "klutometis", ref="s4")
sgibb
  • 25,396
  • 3
  • 68
  • 74
  • is roxygen2 unpopular for the development of large packages? seems like it can save some significant time and help with organization. – Andy Sep 20 '13 at 14:41
  • I can't really answer this question but many people use it for larger packages. – sgibb Sep 20 '13 at 16:02