-
Notifications
You must be signed in to change notification settings - Fork 233
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
broken @docType package
documentation
#1491
broken @docType package
documentation
#1491
Comments
Addendum: I noticed that some packages do use the I think it would be very useful if roxygen2 actively warned its users about the breaking change from 7.0.0, i.e., when the old approach |
Just came to post the same -- the current warning is misleading, routing users to the more awkward
The |
Highlighted here: r-lib/roxygen2#1491
…entinel `_PACKAGE` per request from CRAN: r-lib/roxygen2#1491
Arreglando sugerencia de CRAN: You have file 'FuzzyLP/man/FuzzyLP.Rd' with \docType{package}, likely intended as a package overview help file, but without the appropriate PKGNAME-package \alias as per "Documenting packages" in R-exts. This seems to be the consequence of the breaking change Using @doctype package no longer automatically adds a -package alias. Instead document _PACKAGE to get all the defaults for package documentation. in roxygen2 7.0.0 (2019-11-12) having gone unnoticed, see <r-lib/roxygen2#1491>. As explained in the issue, to get the desired PKGNAME-package \alias back, you should either change to the new approach and document the new special sentinel "_PACKAGE" or manually add @Aliases FuzzyLP-package --> **esto es lo que hemos hecho** if remaining with the old approach.
## v1.0.6 * Fix new `-Wformat` warnings. ## v1.0.5 * Address roxygen2 breaking changes: * Add explicit alias for `fansi-package` now that it is no longer auto-generated by roxgen2 from the [`@docType package` directive](r-lib/roxygen2#1491). * Work around [changed behavior for `@inheritParams`](r-lib/roxygen2#1515).
This is a really, really dumb question, but how do I make a |
@zachmayer maybe a useful reference example https://github.com/tidyverse/tibble/blob/main/R/tibble-package.R |
lol I was overthinking it. As always a reference was all I needed. Thank you! https://github.com/tidyverse/tibble/blob/main/R/tibble-package.R#L62 |
tl;dr can anyone explain why I'm getting a spurious Confused on this issue, don't know if anyone can help me out. I'm maintaining a legacy package. The roxygen stuff at the head of the package-defining .R file looks like this:
But the head of
This is with roxygen2 7.3.2. I could rearrange everything to follow the now-recommended Here's the repo if anyone wants to look at the original. |
roxygen2 7.0.0 (2019-11-12) had the breaking change
from 29db38f.
However, thousands of packages still use the old way (that was still recommended a year ago)
not being aware that they should
_PACKAGE
@aliases <pkgname>-package
because they no longer automatically get that alias that is required for a package overview page to be found via
package?pkgname
. As a consequence, CRAN now has thousands of packages where this help request no longer works.Could roxygen2 warn users when there is a
@docType package
block without corresponding@aliases
(and possibly recommend the new_PACKAGE
feature)?The text was updated successfully, but these errors were encountered: