You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Broken support for #' @importFrom with backticks not documented #1570
changed the title [-]Broken support for ``#' @importFrom purrr `%>%` `` not documented[/-][+]Broken support for ```#' @importFrom purrr `%>%` ``` not documented[/+]on Jan 14, 2024
changed the title [-]Broken support for ```#' @importFrom purrr `%>%` ``` not documented[/-][+]Broken support for `#' @importFrom` with backticks not documented[/+]on Jan 14, 2024
@MichaelChirico Thanks, but the warning isn’t the issue I am concerned about, although it is a bit confusing, and in my case incorrect (you do not need to declare methods in NAMESPACE, even in R >3.6, for an internally defined generic as long as it is only used internally). Unfortunately I also can’t silence the warning in a backwards-compatible way: adding #' @exportS3Method NULL causes a different warning on previous versions of ‘roxygen2’. :-(
Activity
[-]Broken support for ``#' @importFrom purrr `%>%` `` not documented[/-][+]Broken support for ```#' @importFrom purrr `%>%` ``` not documented[/+][-]Broken support for ```#' @importFrom purrr `%>%` ``` not documented[/-][+]Broken support for `#' @importFrom` with backticks not documented[/+]chore: Work around r-lib/roxygen2#1570
MichaelChirico commentedon Jan 15, 2024
I confirm from
git bisect38166f0 is the culpritdchiu911 commentedon Jan 16, 2024
I am also getting similar errors when replacing backticks with quotations
jdblischak commentedon Jan 16, 2024
Try
#' @importFrom magrittr %>%. This should work with roxygen2 7.2.3 and 7.3.0klmr commentedon Jan 16, 2024
I think this is also responsible for the ‘box’ build failures: https://github.com/klmr/box/actions/runs/7535202942
(Edit: actually on second look this looks unrelated, but it’s also new in ‘roxygen2’ 7.3.0; I’ll investigate further.)
MichaelChirico commentedon Jan 17, 2024
@klmr I believe yours is related to this NEWS bullet:
roxygen2/NEWS.md
Lines 16 to 20 in 767ec1b
klmr commentedon Jan 17, 2024
@MichaelChirico Thanks, but the warning isn’t the issue I am concerned about, although it is a bit confusing, and in my case incorrect (you do not need to declare methods in
NAMESPACE, even in R >3.6, for an internally defined generic as long as it is only used internally). Unfortunately I also can’t silence the warning in a backwards-compatible way: adding#' @exportS3Method NULLcauses a different warning on previous versions of ‘roxygen2’. :-(I am talking about the bug described in #1575.
Restore old behavior of @importFrom in some edge cases (#1574)
hadley commentedon Jan 22, 2024
And now on CRAN 😄