The goal of Open Trip Planner for R is to provide a simple R interface to Open Trip Planner (OTP).
To use Open Trip Planner for R you will need a running instance of OTP. A basic tutorial on setting up OTP is available at http://docs.opentripplanner.org/en/latest/Basic-Tutorial/, and an intermediate tutorial complete with sample data is available at https://github.com/marcusyoung/otp-tutorial.
Instructons for installing OTP on Linux can be found in the
getting-started
vignette.
Install the package with devtools as follows:
# install.packages("devtools")
devtools::install_github("marcusyoung/opentripplanner")Tests only run on machines that have the environment variable
I_have_OTP with the value TRUE. You can add this with
usethis::edit_r_environ().
Sys.getenv("I_have_OTP")
#> [1] ""