Skip to content

Remove magrittr from imports#361

Merged
mpadge merged 9 commits into
ropensci:mainfrom
jmaspons:no_magrittr
Jun 11, 2025
Merged

Remove magrittr from imports#361
mpadge merged 9 commits into
ropensci:mainfrom
jmaspons:no_magrittr

Conversation

@jmaspons

Copy link
Copy Markdown
Collaborator

User code relaying on reexported pipe %>% from osmdata must explicitly load it with library(magrittr). Code examples, tests, and vignettes now use the pipe from base (|>) available since R 4.1. Using older versions will work, but the code from some examples and vignettes will need adjustments to run and is not supported.

Apparently, we don't break any package as tested with revdep and the tests with devtools::check_win_oldrelease() use versions already supporting the base pipe.

FIX #358

@jmaspons jmaspons left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improvements

Comment thread R/getbb.R Outdated
Comment thread R/getbb.R Outdated
jmaspons added 2 commits June 10, 2025 17:10
2 in 1 gsub
2 in 1 gsub
@jmaspons jmaspons requested a review from mpadge June 10, 2025 15:14
Comment thread R/getbb.R Outdated
Comment thread R/getbb.R Outdated
@mpadge mpadge merged commit f0646d4 into ropensci:main Jun 11, 2025
6 checks passed
@jmaspons jmaspons deleted the no_magrittr branch June 11, 2025 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Reduce osmdata dependencies: magritrr

2 participants