code

all R packages

osmdata

CRAN Downloads rOpenSci package status

Import 'OpenStreetMap' Data as Simple Features or Spatial Objects

Download and import of 'OpenStreetMap' ('OSM') data as 'sf' or 'sp' objects. 'OSM' data are extracted from the 'Overpass' web server (<https://overpass-api.de/>) and processed with very fast 'C++' routines for return to 'R'.

geodist

CRAN Downloads

Fast, Dependency-Free Geodesic Distance Calculations

Dependency-free, ultra fast calculation of geodesic distances. Includes the reference nanometre-accuracy geodesic distances of Karney (2013) <doi:10.1007/s00190-012-0578-z>, as used by the 'sf' package, as well as Haversine and Vincenty distances. Default distance measure is the "Mapbox cheap ruler" which is generally more accurate than Haversine or Vincenty for distances out to a few hundred kilometres, and is considerably faster. The main function accepts one or two inputs in almost any generic rectangular form, and returns either matrices of pairwise distances, or vectors of sequential distances.

dodgr

CRAN Downloads

Distances on Directed Graphs

Distances on dual-weighted directed graphs using priority-queue shortest paths (Padgham (2019) <doi:10.32866/6945>). Weighted directed graphs have weights from A to B which may differ from those from B to A. Dual-weighted directed graphs have two sets of such weights. A canonical example is a street network to be used for routing in which routes are calculated by weighting distances according to the type of way and mode of transport, yet lengths of routes must be calculated from direct distances.

srr

CRAN Downloads

'rOpenSci' Software Review 'Roclets'

Companion package to 'rOpenSci' statistical software review project ('rOpenSci' authors, 2021; <doi:10.5281/zenodo.5556756>), to facilitate documenting software compliance with statistical standards using 'Roxygen2' 'roclets'.

pkgcheck

CRAN Downloads

Package Checks for 'rOpenSci'

Check whether a package is ready for submission to the 'rOpenSci' peer review system ('rOpenSci' authors (2026) <doi:10.5281/zenodo.2553043> "'rOpenSci' Packages: Development, Maintenance, and Peer Review"). Incorporates the 'goodpractice' package and many additional checks, including aspects related to maintenance of online public code repositories.

pkgstats

CRAN Downloads

Metrics of R Packages

Static code analyses for R packages using the external code-tagging libraries 'ctags' and 'gtags'. Static analyses enable packages to be analysed very quickly, generally a couple of seconds at most. The package also provides access to a database generating by applying the main function to the full 'CRAN' archive, enabling the statistical properties of any package to be compared with all other 'CRAN' packages.

gtfsrouter

CRAN Downloads

Routing with 'GTFS' (General Transit Feed Specification) Data

Use 'GTFS' (General Transit Feed Specification) data for routing from nominated start and end stations, for extracting 'isochrones', and travel times from any nominated start station to all other stations.

autotest

CRAN Downloads

Automatic Package Testing

Automatic testing of R packages by tracing function calls made in examples and tests, then systematically varying the inputs to check that functions respond sensibly. The package is a development aid for authors submitting to the 'rOpenSci' statistical software review project ('rOpenSci' authors, 2021; <doi:10.5281/zenodo.5556756>).

allcontributors

CRAN Downloads

Acknowledge all Contributors to a Project

Acknowledge all contributors to a project via a single function call. The function appends to a 'README' or other specified file(s) a table with names of all individuals who contributed via code or repository issues. The package also includes several additional functions to extract and quantify contributions to any repository.

typetracer

CRAN Downloads

Trace Function Parameter Types

The 'R' language includes a set of defined types, but the language itself is "absurdly dynamic" (Turcotte & Vitek (2019) <doi:10.1145/3340670.3342426>), and lacks any way to specify which types are expected by any expression. The 'typetracer' package enables code to be traced to extract detailed information on the properties of parameters passed to 'R' functions. 'typetracer' can trace individual functions or entire packages.

mapscanner

CRAN Downloads rOpenSci package status

Print Maps, Draw on Them, Scan Them Back in

Enables preparation of maps to be printed and drawn on. Modified maps can then be scanned back in, and hand-drawn marks converted to spatial objects.

pkgmatch

CRAN Downloads rOpenSci package status

Find R Packages Matching Either Descriptions or Other R Packages

Find R packages from CRAN, 'rOpenSci', or Bioconductor corpora. Packages can be matched to general text descriptions, to names of installed packages, or to local paths to entire source repositories. The package is used to list the most similar packages for each new submission to the 'rOpenSci' software peer-review program ('rOpenSci' authors, 2026; <doi:10.5281/zenodo.18885936>).

bikedata

CRAN Downloads rOpenSci package status

Download and Aggregate Data from Public Hire Bicycle Systems

Download and aggregate data from all public hire bicycle systems which provide open data, currently including 'Santander' Cycles in London, U.K.; from the U.S.A., 'Ford GoBike' in San Francisco CA, 'citibike' in New York City NY, 'Divvy' in Chicago IL, 'Capital Bikeshare' in Washington DC, 'Hubway' in Boston MA, 'Metro' in Los Angeles LA, 'Indego' in Philadelphia PA, and 'Nice Ride' in Minnesota; 'Bixi' from Montreal, Canada; and 'mibici' from Guadalajara, Mexico.

osmplotr

CRAN Downloads rOpenSci package status

Bespoke Images of 'OpenStreetMap' Data

Bespoke images of 'OpenStreetMap' ('OSM') data and data visualisation using 'OSM' objects.

dashboard

CRAN Downloads

What the Package Does (One Line, Title Case)

What the package does (one paragraph).

paretoconv

Calculates the N-Fold Convolution of Two Pareto Distributions

Calculates the n-fold convolution of two Pareto distributions using the techniques devised by Colin Ramsay.

genderconsciousrouting

Gender-Conscious Routing Along Streets Named After Women Rather Than Men

Gender-conscious routing along streets named after women rather than men.

neighbourhoods

Efficient Identification of Neighbourhoods within Networks

Algorithm for efficient identification of neighbourhoods within networks.

roreviewapi

Plumber API to report package structure and function

Plumber API to report package structure and function.

spatialcluster

Spatially Contiguous Clustering with the 'Redcap' Algorithm

Groups spatial data into clusters of similar observations, while requiring that each cluster forms a single spatially contiguous region. Contiguity is enforced by first building a spanning tree from the spatial relationships between points, and then cutting that tree into clusters according to a matrix of distances or other measures of similarity. Trees may be built from first-order relationships only (direct neighbours), yielding a minimum spanning tree, or from full-order relationships between entire clusters, using single linkage (nearest members), average linkage (mean of all pairs), or complete linkage (furthest members). The single and average linkage methods implement the 'Redcap' algorithm ('Regionalization' with dynamically constrained agglomerative clustering and partitioning). Results can be visualised as maps of clusters, cluster hulls, or trees.

spaceout

Holds A More Spacious Styleguide

Adds a space before parentheses & co, on top of more common tidyverse-style guide conventions.

orgmetrics

Metrics for Your GitHub Organization

Metrics for your GitHub organization. Call one function to generate an interactive dashboard displaying the state of your organization.

repometrics

Metrics for Your Code Repository

Metrics for your code repository. Call one function to generate an interactive dashboard displaying the state of your code.

r2readthedocs

Convert R Package Documentation to a 'readthedocs' Website

Convert R package documentation to a 'readthedocs' website.

moveability

Moveability statistics for any specified city

Moveability statistics for any specified city.

nyped

Model of pedestrian flows throughout New York City

Model of pedestrian flows throughout New York City.

tnorm

Truncated Normal Distribution

Truncated Normal Distributions can be generated by other packages such as msm, but these are slow. tnorm is a faster C++ replacement.

Contact: Signal · email

Copyright © 2019--26 mark padgham