Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
`usmapdata` is open to any of the following contributions:
* Map data updates from official shape files
* Augmentation or improvement of existing features
* Bug fixes and code refactoring
* Additional or improved documentation (especially new examples, typo fixes, clearer language, etc.)
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Version: 0.2.1.9999
Description: Provides a container for data used by the 'usmap' package.
The data used by 'usmap' has been extracted into this package so that the
file size of the 'usmap' package can be reduced greatly. The data in this
package will be updated roughly once per year (plus bug fixes) as new
shapefiles are provided by the US Census bureau.
package will be updated roughly once per year as new map data files are
provided by the US Census Bureau.
Authors@R: person("Paolo", "Di Lorenzo", email = "dilorenzo@hey.com", role = c("aut", "cre"))
Depends:
R (>= 3.5.0)
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# [unreleased]

### Improvements
* Improve language in `DESCRIPTION` and minor documentation, see [Issue #19](https://github.com/pdil/usmapdata/issues/19).

### Bug Fixes
* `alaska_bbox()` and `hawaii_bbox()` now output correct `sf` type (`sfc polygon`).

Expand Down
4 changes: 2 additions & 2 deletions R/create-us-map.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ create_us_map <- function(
) {
# check for dplyr
if (!requireNamespace("dplyr", quietly = TRUE)) {
stop("`dplyr` must be installed to use `dplyr`.
stop("`dplyr` must be installed to use `create_us_map()`.
Use: install.packages(\"dplyr\") and try again.")
}

type <- match.arg(type)

# import map shape file
# import map file
us <- sf::read_sf(input_file)

# ea: US National Atlas Equal Area
Expand Down