Skip to content
Browse files

use @export instead of @S3method

  • Loading branch information...
1 parent 06ad80a commit 682ecc76bdc14256fb54c018e2fb2955540c7168 @yihui committed Mar 4, 2014
Showing with 2 additions and 4 deletions.
  1. +2 −4 R/S3.R
View
6 R/S3.R
@@ -6,8 +6,6 @@
#' @param x an arbitrary R object
#' @return The class of \code{x} is printed as a side-effect.
#' @export
-#' @S3method hello character
-#' @S3method hello default
#' @examples hello(1)
#' hello('a')
#' hello(structure(1, class = 'world'))
@@ -17,14 +15,14 @@ hello = function(x) {
# default method
-#' @method hello default
#' @rdname hello
+#' @export
hello.default = function(x) {
cat('hello,', class(x), '\n')
}
-#' @method hello character
#' @rdname hello
+#' @export
hello.character = function(x) {
cat('Hi! I love characters!\n')
}

0 comments on commit 682ecc7

Please sign in to comment.
Something went wrong with that request. Please try again.