Skip to content

Commit

Permalink
Change maintainer, fix multipolygon issue, release Version 2.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveEslinger committed May 30, 2022
1 parent c860683 commit 567d708
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 13 deletions.
13 changes: 8 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: SWMPrExtension
Type: Package
Title: Functions for Analyzing and Plotting Estuary Monitoring Data
Version: 2.2.2.0
Maintainer: Dave Eslinger <dave.eslinger@noaa.gov>
Version: 2.2.3
Maintainer: Kirk Waters <kirk.waters@noaa.gov>
Description: Tools for performing routine analysis and plotting tasks with environmental
data from the System Wide Monitoring Program of the National Estuarine
Research Reserve System <http://cdmo.baruch.sc.edu/>. This package builds
Expand Down Expand Up @@ -57,14 +57,17 @@ Authors@R: c(
role = c("ctb"),
email = "[email protected]"),
person(given = "Dave", family = "Eslinger",
role = c("cre", "ctb"),
email = "[email protected]"),
role = c("aut", "ctb"),
email = "[email protected]"),
person(given = "Kirk", family = "Waters",
role = c("cre"),
email = "[email protected]"),
person(given = "Bob", family = "Rudis",
role = c("ctb"),
email = "[email protected]"),
person(given = "Davis", family = "Vaughan",
role = c("ctb"),
email = "[email protected]")
)
RoxygenNote: 7.1.2
RoxygenNote: 7.2.0

4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### SWMPrExtension 2.2.3
* Change mapping checks to accommodate multi-polygons
* Change Maintainer role to [email protected]

### SWMPrExtension 2.2.2.0
* Change EPA National Condition Report to landing page instead of PDF download.
* Checked for CRAN submission.
Expand Down
4 changes: 2 additions & 2 deletions R/res_custom_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ res_custom_map <- function(stations
abbrev <- lab_long <- lab_lat <- NULL

# check that a shape file exists
if(class(shp) != 'SpatialPolygons') {
if(class(shp) != 'sf') {
if(!('SpatialPolygons' %in% class(shp))) {
if(!('sf' %in% class(shp))) {
stop('shapefile (shp) must be sf (preferred) or SpatialPolygons object')
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions R/res_custom_sk_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ res_custom_sk_map <- function(stations
abbrev <- lab_long <- lab_lat <- Longitude <- Latitude <- NULL

# check that a shape file exists
if(class(shp) != 'SpatialPolygons') {
if(class(shp) != 'sf') {
if(!('SpatialPolygons' %in% class(shp))) {
if(!('sf' %in% class(shp))) {
stop('shapefile (shp) must be sf (preferred) or SpatialPolygons object')
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions R/res_local_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ res_local_map <- function(nerr_site_id
abbrev <- lab_long <- lab_lat <- NULL

# check that a shape file exists
if(class(shp) != 'SpatialPolygons') {
if(class(shp) != 'sf') {
if(!('SpatialPolygons' %in% class(shp))) {
if(!('sf' %in% class(shp))) {
stop('shapefile (shp) must be sf (preferred) or SpatialPolygons object')
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions R/res_sk_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ res_sk_map <- function(nerr_site_id
abbrev <- lab_long <- lab_lat <- Latitude <- Longitude <- NULL

# check that a shape file exists
if(class(shp) != 'SpatialPolygons') {
if(class(shp) != 'sf') {
if(!('SpatialPolygons' %in% class(shp))) {
if(!('sf' %in% class(shp))) {
stop('shapefile (shp) must be sf (preferred) or SpatialPolygons object')
}
} else {
Expand Down

0 comments on commit 567d708

Please sign in to comment.