-
Notifications
You must be signed in to change notification settings - Fork 1
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
Export problem()
and problem_message()
#124
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think exporting the generic and eventually moving it to gradethis
sounds great to me! My one question is whether we should give these functions a prefixed name, like gradethis_problem_*()
. Is problem()
too generic of a name for an exported function, or is that not an issue?
Yeah |
I think it's okay and it fits right in with Update with added
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! I like how things are slowly getting more generalizable/extendible, and it'll be even better once generics move to gradethis
.
This PR exposes some of the problem-related infrastructure of tblcheck, in particular making it easier for other packages to construct
problem
objects withproblem()
and to extend theproblem_message
generic.problem()
tblcheck_message()
toproblem_message()
and moved it next to the other code related to the problem class.problem_message()
tootblcheck_grade()
toproblem_grade()
since this also better describes the generic.Now that everything is together I think there's a strong case for the generics to live in gradethis — we even called the problem a
gradethis_problem
. I also think this is the perfect use-case for R7, so I think we should wait until that's available on CRAN and then move the problem generics into gradethis and migrate to R7 at the same time.