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
Rely on roxygen2 more #1849
Rely on roxygen2 more #1849
Conversation
Much of the previous code is no longer necessary as roxygen2 handles it internally. Once we can move roxygen2 back into imports, we can add a version dependency there and then delete the old code.
|
Couldn't we just depend on roxygen 6.1.0 now that it is on CRAN, even with it still in Suggests? We already depend on roxygen 5.0.0 there. IIRC |
|
My memory is that the version requirements of suggested packages aren't enforced, but I might be wrong. |
WRE has:
Kind of makes sense for a suggested package. |
|
Right, but we do check this explicitly with pkgload::check_suggested() earlier in this function, although you get a warning rather than an error. (I artificially bumped the version in the DESCRIPTION as a test). > check_suggested("roxygen2")
Warning in check_dep_version(package, version) :
Need roxygen2 >= 7.0.0 but loaded version is 6.1.0 |
R/document.r
Outdated
| if (packageVersion("roxygen2") < "6.1.0") { | ||
| load_all(pkg$path, helpers = FALSE) | ||
| } | ||
| if (packageVersion("roxygen2") < "6.1.0") { |
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.
We can remove this conditional, the only way you could be in this block is by being less than "6.1.0"
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.
Doh
|
Hmm, looks like it should be an error? I'm in favour of just bumping if you're ok with it. |
|
Yeah just bumping sounds good to me. |
|
Appveyor failure seems unrelated; I think this is good to merge. |
|
I am finding that I need this PR in order for Here's what happens if you create a new package with A different consequence of this PR that might be undesirable is that the |
|
Thanks! |
|
I think this is still worth pondering but I guess it's a roxygen2 matter now (?):
|
|
Would you mind filing a roxygen2 bug so I don't forget? |
|
Maybe we should be calling |
|
Also potentially |
|
Yeah, that seems like a good idea. |
* Rely on roxygen2 all more Much of the previous code is no longer necessary as roxygen2 handles it internally. Once we can move roxygen2 back into imports, we can add a version dependency there and then delete the old code.
Much of the previous code is no longer necessary as roxygen2 handles it internally. Once we can move roxygen2 back into imports, we can add a version dependency there and then delete the old code.