Skip to content
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

Refactoring to address #124 and #127 + clean up Imports #129

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

elipousson
Copy link

I started working on this only to address #124 but, I wanted the package to be able to clear devtools::check(), so I ended up addressing a variety of other small issues at the same time. Most of the changes are focused on avoiding whole library imports + moving the @importFrom tags to the function or package documentation. Key changes to imports include:

  • Adding cli, rlang, sp, utils to Imports and removing assertthat from Imports
  • Adding geojsonio and stars to Suggests + moving leaflet.extras, leafpop, mapdeck, miniUI, and tmaptools from Imports to Suggests

I added cli and rlang to handle error and warning messages and use rlang::check_installed() for all the packages that are now in Suggests. I also switched the organization of the non-exported mapview functions to match the organization within the mapview repository.

Lastly, I addressed #124 by replacing the calls to dplyr::select_() with dplyr::select() and dplyr::all_of() and incorporated the fix that @warnes used to address #127 in his pending pull request. Hope this is welcome pull request but I'm happy to make changes if needed!

- docs: build README to add badges + swap remotes for pak
- refactor: add helper functions + rename insane_longitude_warning to invalid_longitude_warning
- refactor: copy mapview2leaflet function into helpers
- refactor: update Imports (adding cli, rlang,  sp, utils + removing assertthat) + Suggests (adding geojsonio and stars + moving  leaflet.extras, leafpop, mapdeck, miniUI, and tmaptools from Imports)
- refactor: stop importing whole libraries, add missing prefixes, and move importFrom tags to package documentation
- docs: wrap excess line lengths for function descriptions/parameter definitions
- docs: add MIT License file + correct license badge in README
- refactor: split leafletControls.R from projection.R + return mapview_init to leafletControls.R
- refactor: simplify logic for createExtent + add imports from raster, sp, and sf + add helper functions
@elipousson
Copy link
Author

@tim-salabim – no rush, of course, but just wanted to make sure you'd seen that this pull request existed. I also wanted to offer that I can always modify the pull request changes if there was some but not all of these changes that you'd like to see added to the package.

Also check for libraries loaded in select_shiny_crosstalk
Addresses note from check: "Cannot extract version info from the following section titles: Bug Fixes"
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.

None yet

1 participant