-
Notifications
You must be signed in to change notification settings - Fork 20
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
Addressing CRAN review comments #173
Conversation
Relates to CRAN review: #167 (comment).
While ensuring something remains for execution in R CMD check. Relates to CRAN review: #167 (comment).
Relates to CRAN review: #167 (comment).
@paleolimbot (or others) I'd like to have your opinion on whether or not to impose R>=3.6.0 in implementing delayed S3 method registration. Currently no minimal R version is imposed. Current implementation uses Lines 6 to 11 in 671863a
CRAN policy is that examples can only exist for exported functions however. What I'd really like to keep:
I see two possibilities to solve this:
I have a preference for the first possibility because it is not a workaround wrt having the examples, although it would be the first time we introduce a minimal R version... |
Relates to CRAN review: #167 (comment).
…y) * Relates to CRAN review: #167 (comment).
Relates to CRAN review: #167 (comment).
…::s3_register() * Relates to CRAN review: #167 (comment). Before, vctrs::s3_register() was used to dynamically register S3 methods for generics in suggested packages, in this case for sf::st_as_sf() and stars::st_as_stars(). However we also want to have these methods documented, with examples, and appearing in the package index. This was already the case, but CRAN requires examples to be present only for exported methods (NAMESPACE). Delayed S3 method registration is supported since R>=3.6.0, and can be implemented with the roxygen2 tag @exportS3Method. The downside of this non-vctrs implementation is the minimum required R version.
Adopting the Moreover, R 4.0 was out already before qgisprocess development started, so it's not expected that people need older R versions to work with qgisprocess. Remaining vctrs code is now limited to |
For the review comments, see #167 (comment).