-
Notifications
You must be signed in to change notification settings - Fork 37
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
Vignette for roxygen documentation of an S7 class and method #528
Comments
title: "Documenting an S7 Class with roxygen"
|
I struggled quite a bit learning how to document my S7 class and methods. I finally figured it out, partially by duplicating the demonstration Range class from an S7 vignette. I figured I could develop my demo and (with some help from ChatGPT) offer it as a first draft for a new S7 vignette proposal for how to document an S7 class using
roxygen
. I would think it makes more sense adding such a vignette to the S7 site than to theroxygen
site because I think this is where people new to S7 would look first.Although the documentation works (I reproduce images from R help to show the results), there are probably better ways to do things than in this draft, so I hope I can learn from any corrections. In particular, I'm really not sure about naming the
print method
print.Range in S3 style. But at least it works.For convenience of viewing, I will post the entire Quarto code in the next comment so that it is rendered. I hope that's OK. (Also, I generated this Range demo within my development version of the ale package, so that name appears in my draft below.)
So, to be clear, the purpose of this issue is to request a new vignette; I offer a first draft for discussion and correction.
The text was updated successfully, but these errors were encountered: