Closed
Description
roxygen2 7.3.0 fails for several of my packages. The only vaguely related NEWS entry I found is
@importFrom
throws a friendlier error if you try and import a non-existing functions (@MichaelChirico, Check imports when generating the NAMESPACE file #1409).
Is the new behavior intended, is it worth waiting for a fix?
roxygen2 7.3.0
library(roxygen2)
roc_proc_text(namespace_roclet(), "
#' @importFrom purrr `%>%`
NULL
")
#> ✖ <text>:2: @importFrom Excluding unknown export in from purrr: `` `%>%` ``.
#> [1] "importFrom(purrr,)"
roc_proc_text(namespace_roclet(), "
#' @importFrom purrr %>%
NULL
")
#> [1] "importFrom(purrr,\"%>%\")"
Created on 2024-01-14 with reprex v2.0.2
roxygen2 7.2.3
library(roxygen2)
roc_proc_text(namespace_roclet(), "
#' @importFrom purrr `%>%`
NULL
")
#> [1] "importFrom(purrr,`%>%`)"
roc_proc_text(namespace_roclet(), "
#' @importFrom purrr %>%
NULL
")
#> [1] "importFrom(purrr,\"%>%\")"
Created on 2024-01-14 with reprex v2.0.2