Skip to content

Commit

Permalink
eliminates {rworldmap} dependency (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdetsch committed Jun 10, 2022
1 parent b99c028 commit 02bd797
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 21 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ License: MIT + file LICENSE
Depends:
R (>= 4.1)
Imports:
rworldmap,
gmt,
zoo,
Rssa,
Expand Down
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ importFrom(forecast,forecast)
importFrom(gmt,geodist)
importFrom(graphics,points)
importFrom(reshape2,melt)
importFrom(rworldmap,mapGriddedData)
importFrom(sf,st_as_sf)
importFrom(zoo,as.yearmon)
importFrom(zoo,read.zoo)
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#### 🍬 miscellaneous

* Eliminates {dplyr} dependency (#12)
* Eliminates {dplyr} and {rworldmap} dependencies (#12)


# GSODTools 1.0.5 (2022-06-08)
Expand Down
4 changes: 0 additions & 4 deletions R/stationFromCoords.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
#' y = -3.065053,
#' width = 100)
#'
#' rworldmap::mapGriddedData(mapRegion = "africa", plotData = FALSE, borderCol = "black",
#' addLegend = FALSE)
#' points(sf::st_coordinates(gsod_shp), col = "red", pch = 20, cex = 2)
#'
#' # Alternatively
#' gsod_shp <- stationFromCoords(x = c(37.359031, -3.065053),
#' width = 100)
Expand Down
6 changes: 0 additions & 6 deletions R/stationFromExtent.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@
#' kili <- sf::st_bbox(c(xmin = 37, xmax = 37.72, ymin = -3.4, ymax = -2.84))
#' gsod_shp_kili <- stationFromExtent(bb = kili)
#'
#' rworldmap::mapGriddedData(mapRegion = "africa", plotData = FALSE, borderCol = "black",
#' addLegend = FALSE)
#' points(sf::st_coordinates(gsod_shp_kili), col = "red")
#'
#' @importFrom rworldmap mapGriddedData
#'
#' @export
stationFromExtent <- function(bb,
...) {
Expand Down
4 changes: 0 additions & 4 deletions man/stationFromCoords.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions man/stationFromExtent.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 02bd797

Please sign in to comment.