Skip to content

Commit

Permalink
refactor: reduce package dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-davison committed Jul 19, 2024
1 parent 570dd9b commit 1f3ffb3
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 39 deletions.
2 changes: 0 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ Imports:
bsicons,
dplyr,
fontawesome,
glue,
leaflet,
magick,
magrittr,
purrr,
rsvg
Suggests:
Expand Down
3 changes: 1 addition & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Generated by roxygen2: do not edit by hand

export("%>%")
export(addIconLegend)
export(iconBin)
export(iconFactor)
export(iconQuantile)
export(magicIcons)
importFrom(magrittr,"%>%")
importFrom(leaflet,"%>%")
importFrom(rsvg,rsvg_png)
1 change: 1 addition & 0 deletions R/leaf.magic-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"_PACKAGE"

## usethis namespace: start
#' @importFrom leaflet %>%
#' @importFrom rsvg rsvg_png
## usethis namespace: end
NULL
2 changes: 1 addition & 1 deletion R/magicIcons.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ magicIcons <- function(icon = "circle",
3.5

marker <-
magick::image_composite(pin, logo, offset = glue::glue("+{h_adj}+{v_adj}"))
magick::image_composite(pin, logo, offset = paste0("+", h_adj, "+", v_adj))

shadow <- marker %>%
magick::image_background("transparent") %>%
Expand Down
14 changes: 0 additions & 14 deletions R/utils-pipe.R

This file was deleted.

20 changes: 0 additions & 20 deletions man/pipe.Rd

This file was deleted.

0 comments on commit 1f3ffb3

Please sign in to comment.