Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If no public methods provided and cloneable is FALSE, roxygen2 will failed #1610

Open
Yunuuuu opened this issue Apr 17, 2024 · 0 comments
Open

Comments

@Yunuuuu
Copy link

Yunuuuu commented Apr 17, 2024

#' R6 Class Representing a Person
#'
#' @description
#' A person has a name and a hair color.
#'
#' @details
#' A person can also greet you.
Person <- R6::R6Class("Person",
    active = list(
        #' @description
        #' Change hair color.
        #' @param val New hair color.
        #' @examples
        #' P <- Person("Ann", "black")
        #' P$hair
        #' P$set_hair("red")
        #' P$hair
        set_hair = function(val) {
            val
        },

        #' @description
        #' Say hi.
        greet = function() {
            cat("Hello")
        }
    ),
    cloneable = FALSE
)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant