A package I'm working on uses
purrr::map_dfr() internally in some of its functions. Both
dplyr are included in the Imports in my Description file.
Both examples and tests obviously include these functions using
purrr::map_dfr() internally, and when run e.g. with
devtools::test() all works fine, all tests are passed. However, when I run
devtools::check() I get the following error:
Error: `map_df()` requires dplyr
This is puzzling, as
dplyr is imported. Also, I run multiple checks both with Rhub and on Github and none throws the same error.
I'm on the latest Fedora, R4.0.4, all packages are up to date. Any idea on how to troubleshoot this further?