Skip to content

Commit

Permalink
Update stplanr vignette (#421)
Browse files Browse the repository at this point in the history
* Update stplanr vignette

* Reduce dependency on sp

* Update sp objects, try to fix #364 again

* Save geo objects more efficiently

* Fix vignette

* Increment version number

* Close #393

* Update news

* Update readme

* Update docker image

* Update stplanr vignette

* Reduce dependency on sp

* Update sp objects, try to fix #364 again

* Save geo objects more efficiently

* Fix vignette

* Increment version number

* Close #393

* Update news
  • Loading branch information
Robinlovelace authored Aug 25, 2020
1 parent c73dc70 commit 3ec419f
Show file tree
Hide file tree
Showing 82 changed files with 253 additions and 1,598 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: stplanr
Type: Package
Title: Sustainable Transport Planning
Version: 0.6.2
Version: 0.7.0
Authors@R: c(
person("Robin", "Lovelace", email = "rob00x@gmail.com", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-5679-6536")),
Expand Down
11 changes: 0 additions & 11 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ S3method(calc_catchment_sum,Spatial)
S3method(calc_catchment_sum,sf)
S3method(gclip,Spatial)
S3method(gclip,sf)
S3method(geo_bb,Spatial)
S3method(geo_bb,bbox)
S3method(geo_bb,matrix)
S3method(geo_bb,sf)
Expand Down Expand Up @@ -52,12 +51,8 @@ S3method(nearest_cyclestreets,Spatial)
S3method(nearest_cyclestreets,sf)
S3method(od2line,Spatial)
S3method(od2line,sf)
S3method(od_aggregate,Spatial)
S3method(od_aggregate,sf)
S3method(onewaygeo,Spatial)
S3method(onewaygeo,sf)
S3method(onewayid,SpatialLines)
S3method(onewayid,data.frame)
S3method(overline,Spatial)
S3method(overline,sf)
S3method(points2line,Spatial)
Expand Down Expand Up @@ -93,7 +88,6 @@ export(geo_select_aeq)
export(geo_toptail)
export(gprojected)
export(gsection)
export(gtfs2sldf)
export(is_linepoint)
export(islines)
export(line2df)
Expand All @@ -120,7 +114,6 @@ export(nearest_google)
export(od2line)
export(od2line2)
export(od2odf)
export(od_aggregate)
export(od_aggregate_from)
export(od_aggregate_to)
export(od_coords)
Expand All @@ -131,11 +124,9 @@ export(od_id_max_min)
export(od_id_order)
export(od_id_szudzik)
export(od_oneway)
export(od_radiation)
export(od_to_odmatrix)
export(odmatrix_to_od)
export(onewaygeo)
export(onewayid)
export(overline)
export(overline2)
export(overline_intersection)
Expand All @@ -153,7 +144,6 @@ export(route_average_gradient)
export(route_cyclestreets)
export(route_dodgr)
export(route_google)
export(route_graphhopper)
export(route_local)
export(route_nearest_point)
export(route_rolling_average)
Expand All @@ -168,7 +158,6 @@ export(route_transportapi_public)
export(sln2points)
export(sln_add_node)
export(sln_clean_graph)
export(sp_aggregate)
export(sum_network_links)
export(sum_network_routes)
export(toptail_buff)
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# stplanr 0.7.0

- Old `mapshape()`, `line_match()` and `gclip()` functions deprecated, maintained alternatives can now be found in other packages.
- `sp` objects updated for latest version of `sp` (#364)
- `sf` objects updated to support more recent CRS encoding (#393)

# stplanr 0.6.2

## New features
Expand Down
12 changes: 0 additions & 12 deletions R/SpatialLinesNetwork.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,6 @@ validity = function(object) {
#' @family rnet
#' @export
#' @examples
#' sln <- SpatialLinesNetwork(route_network)
#' class(sln)
#' weightfield(sln) # field used to determine shortest path
#' plot(sln)
#' points(sln2points(sln)[1, ], cex = 5)
#' points(sln2points(sln)[50, ], cex = 5)
#' shortpath <- sum_network_routes(sln, 1, 50, sumvars = "length")
#' plot(shortpath, col = "red", lwd = 4, add = TRUE)
#' points(sln2points(sln)[35, ], cex = 5)
#' shortpath <- sum_network_routes(sln, 1, 35, sumvars = "length")
#' plot(shortpath, col = "red", lwd = 4, add = TRUE)
#' library(sf)
#' sln_sf <- SpatialLinesNetwork(route_network_sf)
#' plot(sln_sf)
#' shortpath <- sum_network_routes(sln_sf, 1, 50, sumvars = "length")
Expand Down
Loading

0 comments on commit 3ec419f

Please sign in to comment.