Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Define an S3 class and related function for input #16

Open
elong0527 opened this issue Mar 22, 2022 · 0 comments
Open

Define an S3 class and related function for input #16

elong0527 opened this issue Mar 22, 2022 · 0 comments

Comments

@elong0527
Copy link
Collaborator

replacing the exposed tibble() and data.frame() calls for constructing non-trivial types of inputs with formally-defined classes and generators using S3 or else.

Without it, we are just assuming: 1) the developer always know what an input object has; 2) users always know what they should put into them; 3) users can construct them correctly.

Reference: https://adv-r.hadley.nz/s3.html

Example: ggplot2::aes https://github.com/tidyverse/ggplot2/blob/main/R/aes.r

@elong0527 elong0527 mentioned this issue Mar 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant