Roxygen2 – how to properly document S3 methods

As of roxygen2 >3.0.0, you only need @export: #’ A description of MyHappyFunction #’ #’ A details of MyHappyFunction #’ #’ @title MyHappyFunction: The my happy function #’ @param x numeric number #’ @param … other arguments #’ @examples #’ a <- 1 #’ class(a) <- “lm” #’ MyHappyFunction(a) #’ @export MyHappyFunction <- function(x, …){ … Read more