Skip to content

Commit

Permalink
Fix documentation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Apr 4, 2022
1 parent 1582c17 commit 4b033ad
Show file tree
Hide file tree
Showing 57 changed files with 54 additions and 1,488 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ LazyData: yes
Depends:
R (>= 3.5.0)
Imports:
sp (>= 1.3.1),
curl (>= 3.2),
dplyr (>= 0.7.6),
httr (>= 1.3.1),
Expand All @@ -56,6 +55,7 @@ Imports:
data.table,
pbapply
Suggests:
sp (>= 1.3.1),
testthat (>= 2.0.0),
knitr (>= 1.20),
igraph (>= 1.2.2),
Expand Down
23 changes: 0 additions & 23 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ S3method(line2pointsn,Spatial)
S3method(line2pointsn,sf)
S3method(line2vertices,sf)
S3method(n_vertices,sf)
S3method(nearest_cyclestreets,"NULL")
S3method(nearest_cyclestreets,Spatial)
S3method(nearest_cyclestreets,sf)
S3method(od2line,Spatial)
S3method(od2line,sf)
S3method(onewaygeo,sf)
Expand All @@ -43,10 +40,8 @@ S3method(route,numeric)
S3method(route,sf)
export("%>%")
export(angle_diff)
export(api_pat)
export(bb2poly)
export(bbox_scale)
export(dist_google)
export(geo_bb)
export(geo_bb_matrix)
export(geo_buffer)
Expand All @@ -61,20 +56,14 @@ export(islines)
export(line2df)
export(line2points)
export(line2pointsn)
export(line2route)
export(line2routeRetry)
export(line2vertices)
export(line_bearing)
export(line_breakup)
export(line_midpoint)
export(line_sample)
export(line_segment)
export(line_via)
export(mats2line)
export(n_sample_length)
export(n_vertices)
export(nearest_cyclestreets)
export(nearest_google)
export(od2line)
export(od2line2)
export(od2odf)
Expand Down Expand Up @@ -111,7 +100,6 @@ export(rnet_group)
export(route)
export(route_average_gradient)
export(route_bikecitizens)
export(route_cyclestreets)
export(route_dodgr)
export(route_google)
export(route_nearest_point)
Expand All @@ -125,7 +113,6 @@ export(route_slope_vector)
export(route_split)
export(route_split_id)
export(toptail_buff)
export(toptailgs)
import(curl)
importFrom(Rcpp,evalCpp)
importFrom(dplyr,first)
Expand All @@ -141,16 +128,6 @@ importFrom(methods,slot)
importFrom(raster,crop)
importFrom(raster,extent)
importFrom(rlang,.data)
importFrom(sp,"proj4string<-")
importFrom(sp,CRS)
importFrom(sp,Lines)
importFrom(sp,SpatialLines)
importFrom(sp,bbox)
importFrom(sp,coordinates)
importFrom(sp,plot)
importFrom(sp,proj4string)
importFrom(sp,spChFIDs)
importFrom(sp,spTransform)
importFrom(stats,setNames)
importFrom(utils,download.file)
importFrom(utils,read.csv)
Expand Down
47 changes: 0 additions & 47 deletions R/cyclestreets.R

This file was deleted.

27 changes: 0 additions & 27 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,33 +46,6 @@ NULL
#' The key variables are the origin and destination ids, which link to
#' the `cents` georeferenced spatial objects.
#' @family example data
#' @examples
#' \dontrun{
#' # This is how the dataset was constructed - see
#' # https://github.com/npct/pct - if download to ~/repos
#' flow <- readRDS("~/repos/pct/pct-data/national/flow.Rds")
#' data(cents)
#' o <- flow$Area.of.residence %in% cents$geo_code[-1]
#' d <- flow$Area.of.workplace %in% cents$geo_code[-1]
#' flow <- flow[o & d, ] # subset flows with o and d in study area
#' library(devtools)
#' flow$id <- paste(flow$Area.of.residence, flow$Area.of.workplace)
#' use_data(flow, overwrite = TRUE)
#'
#' # Convert flows to spatial lines dataset
#' flowlines <- od2line(flow = flow, zones = cents)
#' # use_data(flowlines, overwrite = TRUE)
#'
#' # Convert flows to routes
#' routes_fast <- line2route(l = flowlines, plan = "fastest")
#' routes_slow <- line2route(l = flowlines, plan = "quietest")
#'
#' use_data(routes_fast)
#' use_data(routes_slow)
#' routes_fast_sf <- sf::st_as_sf(routes_fast)
#' routes_slow_sf <- sf::st_as_sf(routes_slow)
#' }
#'
#' @docType data
#' @keywords datasets
#' @name flow
Expand Down
2 changes: 1 addition & 1 deletion R/geo_code.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#' @param return_all Should the request return all information returned by Google Maps?
#' The default is `FALSE`: to return only two numbers: the longitude and latitude, in that order
#' @param service Which service to use? Nominatim by default
#' @inheritParams route_cyclestreets
#' @param pat Personal access token
#' @family nodes
#' @export
#' @examples
Expand Down
179 changes: 0 additions & 179 deletions R/google-functions.R

This file was deleted.

Loading

0 comments on commit 4b033ad

Please sign in to comment.