R interface to the Hubway "API"
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
man
tests
.Rbuildignore
.gitignore
.travis.yml
CONDUCT.md
DESCRIPTION
LICENSE
NAMESPACE
README.Rmd
README.md
hubway.Rproj

README.md

hubway : Tools to Work with the 'Hubway' 'API'

The following functions are implemented:

  • get_stations: Retrieve the current status of all Hubway stations

The following data sets are included:

Installation

devtools::install_github("hrbrmstr/hubway")

Usage

library(hubway)

# current verison
packageVersion("hubway")
#> [1] '0.0.0.9000'

get_stations()
#> # A tibble: 162 x 18
#>    station_id num_bikes_available num_bikes_disabled num_docks_available num_docks_disabled is_installed is_renting
#>         <chr>               <int>              <int>               <int>              <int>        <int>      <int>
#> 1           3                   4                  0                  11                  0            1          1
#> 2           4                   7                  0                   8                  0            1          1
#> 3           5                   2                  1                  11                  1            1          1
#> 4           6                   4                  2                   8                  1            1          1
#> 5           7                  14                  1                   0                  0            1          1
#> 6           8                  11                  0                   4                  0            1          1
#> 7           9                   3                  0                  16                  0            1          1
#> 8          10                   6                  1                   4                  0            1          1
#> 9          11                   7                  0                   8                  0            1          1
#> 10         12                   5                  1                   9                  0            1          1
#> # ... with 152 more rows, and 11 more variables: is_returning <int>, last_reported <chr>,
#> #   eightd_has_available_keys <lgl>, name <chr>, short_name <chr>, lat <dbl>, lon <dbl>, region_id <int>,
#> #   rental_methods <list>, capacity <int>, eightd_has_key_dispenser <lgl>

Test Results

library(hubway)
library(testthat)

date()
#> [1] "Thu Jul 14 15:33:03 2016"

test_dir("tests/")
#> testthat results ========================================================================================================
#> OK: 0 SKIPPED: 0 FAILED: 0
#> 
#> DONE ===================================================================================================================

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.