Skip to content

Commit

Permalink
Merge pull request #72 from rsbivand/remove_shp
Browse files Browse the repository at this point in the history
remove ESRI Shapefile
  • Loading branch information
Nowosad authored Dec 2, 2024
2 parents 1f5f989 + 34bb5a7 commit 2d080ad
Show file tree
Hide file tree
Showing 38 changed files with 38 additions and 38 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
^pkgdown$
^\.github$
^CRAN-SUBMISSION$
^pkgdown$
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: spData
Title: Datasets for Spatial Analysis
Version: 2.3.3
Version: 2.3.4
Authors@R: c(person("Roger", "Bivand", role = "aut", email="[email protected]", comment = c(ORCID = "0000-0003-2392-6140")),
person("Jakub", "Nowosad", role = c("aut", "cre"), email="[email protected]", comment = c(ORCID = "0000-0002-1057-3721")),
person("Robin", "Lovelace", role = "aut", comment = c(ORCID = "0000-0001-5679-6536")),
Expand All @@ -11,7 +11,7 @@ Authors@R: c(person("Roger", "Bivand", role = "aut", email="[email protected]"
Description: Diverse spatial datasets for demonstrating, benchmarking and teaching spatial data analysis.
It includes R data of class sf (defined by the package 'sf'), Spatial ('sp'), and nb ('spdep').
Unlike other spatial data packages such as 'rnaturalearth' and 'maps',
it also contains data stored in a range of file formats including GeoJSON, ESRI Shapefile and GeoPackage.
it also contains data stored in a range of file formats including GeoJSON and GeoPackage, but from version 2.3.4, no longer ESRI Shapefile - use GeoPackage instead.
Some of the datasets are designed to illustrate specific analysis techniques.
cycle_hire() and cycle_hire_osm(), for example, is designed to illustrate point pattern analysis techniques.
Depends:
Expand Down
8 changes: 6 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# spData 2.3.4

* Removes ESRI Shapefile versions of all datasets

# spData 2.3.3

* Specifies CRS of the `nz` and `nz_height` objects to `ESPG:2193`
Expand All @@ -8,5 +12,5 @@

# spData 2.3.1

* Added a `NEWS.md` file to track changes to the package.
* We added GeoPackage versions of all the datasets in the package (and we plan to remove the ESRI Shapefile versions in the near future).
* Adds a `NEWS.md` file to track changes to the package.
* We added GeoPackage versions of all the datasets in the package (and we plan to remove the ESRI Shapefile versions in the near future).
2 changes: 1 addition & 1 deletion R/wheat.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#'
#' if (requireNamespace("sf", quietly = TRUE)) {
#' library(sf)
#' wheat <- st_read(system.file("shapes/wheat.shp", package="spData"))
#' wheat <- st_read(system.file("shapes/wheat.gpkg", package="spData"))
#' plot(wheat)
#' }
"wheat"
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ knitr::opts_chunk$set(
[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/spData)](https://cran.r-project.org/package=spData)
[![CRAN RStudio total mirror downloads](https://cranlogs.r-pkg.org/badges/grand-total/spData)](https://cran.r-project.org/package=spData)

Datasets for spatial analysis
Datasets for spatial analysis (from version 2.3.4, ESRI Shapefile datasets have been dropped, use the provided GeoPackage files instead)

### **sf**

Expand Down
51 changes: 23 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@

---
output:
github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->



# spData <img src="man/figures/logo.png" align="right" alt="" width="150" />

[![GitHub action build
status](https://github.com/Nowosad/spData/workflows/pkgdown/badge.svg)](https://github.com/Nowosad/spData/actions)
[![CRAN
version](https://www.r-pkg.org/badges/version/spData)](https://cran.r-project.org/package=spData)
[![CRAN RStudio mirror
downloads](https://cranlogs.r-pkg.org/badges/spData)](https://cran.r-project.org/package=spData)
[![CRAN RStudio total mirror
downloads](https://cranlogs.r-pkg.org/badges/grand-total/spData)](https://cran.r-project.org/package=spData)
[![GitHub action build status](https://github.com/Nowosad/spData/workflows/pkgdown/badge.svg)](https://github.com/Nowosad/spData/actions)
[![CRAN version](https://www.r-pkg.org/badges/version/spData)](https://cran.r-project.org/package=spData)
[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/spData)](https://cran.r-project.org/package=spData)
[![CRAN RStudio total mirror downloads](https://cranlogs.r-pkg.org/badges/grand-total/spData)](https://cran.r-project.org/package=spData)

Datasets for spatial analysis
Datasets for spatial analysis (from version 2.3.4, ESRI Shapefile datasets have been dropped, use the provided GeoPackage files instead)

### **sf**

- `alaska` - Alaska multipolygon
- `aggregating_zones` - See `congruent`
- `congruent` - Sample of UK administrative zones that have shared
borders with `aggregating_zones` (`incongruent` does not have shared
borders) for teaching the concept of spatial congruence
- `congruent` - Sample of UK administrative zones that have shared borders with `aggregating_zones` (`incongruent` does not have shared borders) for teaching the concept of spatial congruence
- `cycle_hire` - Cycle hire points in London
- `cycle_hire_osm` - Cycle hire points in London from OSM
- `hawaii` - Hawaii multipolygon
- `incongruent` - See `congruent`
- `lnd` - The boroughs of London
- `nz` - The regions of New Zealand
- `nz_height` - High points in New Zealand
- `seine` - Small river network in France
- `seine` - Small river network in France
- `urban_agglomerations` - Major urban areas worldwide
- `us_states` - US states polygons
- `world` - World country polygons

### **sp**

- `auckland` - Marshalls infant mortality in Auckland dataset
- `auckland` - Marshall's infant mortality in Auckland dataset
- `elect80` - 1980 Presidential election results
- `house` - Lucas county OH housing
- `SplashDams` - Data for Splash Dams in western Oregon
Expand All @@ -59,8 +58,7 @@ Datasets for spatial analysis
### misc

- `baltimore` - House sales prices, Baltimore, MD 1978
- `coffee_data` - World coffee production statistics by country, 2016
and 2017
- `coffee_data` - World coffee production statistics by country, 2016 and 2017
- `getisord` - Getis-Ord remote sensing example data
- `hopkins` - Hopkins burnt savanna herb remains
- `huddersfield` - Prevalence of respiratory symptoms
Expand All @@ -74,31 +72,28 @@ Datasets for spatial analysis

Get the released version from CRAN:

``` r
```R
install.packages("spData")
```

Get the development version from github:

``` r
```R
devtools::install_github("nowosad/spData")
```

## spDataLarge

This package interacts with data available through the **spDataLarge**
package, which is available in a ‘drat’ repository. To access this data
package, run:
This package interacts with data available through the **spDataLarge** package, which is available in a 'drat' repository.
To access this data package, run:

``` r
```R
install.packages("spDataLarge", repos = "https://nowosad.github.io/drat/", type = "source")
```

The size of the **spDataLarge** package is approximately 20 MB. Learn
more about the **spDataLarge** package at
<https://github.com/Nowosad/spDataLarge>.
The size of the **spDataLarge** package is approximately 20 MB.
Learn more about the **spDataLarge** package at https://github.com/Nowosad/spDataLarge.

## Contributions

[Feel free to submit issues and enhancement
requests.](https://github.com/Nowosad/spData/issues)
[Feel free to submit issues and enhancement requests.](https://github.com/Nowosad/spData/issues)
3 changes: 3 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
template:
bootstrap: 5
url: https://jakubnowosad.com/spData/
Binary file removed inst/shapes/NY8_utm18.dbf
Binary file not shown.
1 change: 0 additions & 1 deletion inst/shapes/NY8_utm18.prj

This file was deleted.

Binary file removed inst/shapes/NY8_utm18.shp
Binary file not shown.
Binary file removed inst/shapes/NY8_utm18.shx
Binary file not shown.
Binary file removed inst/shapes/auckland.dbf
Binary file not shown.
Binary file removed inst/shapes/auckland.shp
Binary file not shown.
Binary file removed inst/shapes/auckland.shx
Binary file not shown.
Binary file removed inst/shapes/baltim.dbf
Binary file not shown.
Binary file removed inst/shapes/baltim.shp
Binary file not shown.
Binary file removed inst/shapes/baltim.shx
Binary file not shown.
Binary file removed inst/shapes/boston_tracts.dbf
Binary file not shown.
1 change: 0 additions & 1 deletion inst/shapes/boston_tracts.prj

This file was deleted.

Binary file removed inst/shapes/boston_tracts.shp
Binary file not shown.
Binary file removed inst/shapes/boston_tracts.shx
Binary file not shown.
Binary file removed inst/shapes/columbus.dbf
Binary file not shown.
Binary file removed inst/shapes/columbus.shp
Binary file not shown.
Binary file removed inst/shapes/columbus.shx
Binary file not shown.
Binary file removed inst/shapes/eire.dbf
Binary file not shown.
Binary file removed inst/shapes/eire.shp
Binary file not shown.
Binary file removed inst/shapes/eire.shx
Binary file not shown.
Binary file removed inst/shapes/sids.dbf
Binary file not shown.
Binary file removed inst/shapes/sids.shp
Binary file not shown.
Binary file removed inst/shapes/sids.shx
Binary file not shown.
Binary file removed inst/shapes/wheat.dbf
Binary file not shown.
Binary file removed inst/shapes/wheat.shp
Binary file not shown.
Binary file removed inst/shapes/wheat.shx
Binary file not shown.
Binary file removed inst/shapes/world.dbf
Binary file not shown.
1 change: 0 additions & 1 deletion inst/shapes/world.prj

This file was deleted.

Binary file removed inst/shapes/world.shp
Binary file not shown.
Binary file removed inst/shapes/world.shx
Binary file not shown.
2 changes: 1 addition & 1 deletion man/wheat.Rd

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

0 comments on commit 2d080ad

Please sign in to comment.