Skip to content
This repository was archived by the owner on Mar 25, 2019. It is now read-only.

Commit 9e9c617

Browse files
committed
Initial package setup
1 parent c937a6d commit 9e9c617

File tree

8 files changed

+100
-36
lines changed

8 files changed

+100
-36
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
^.*\.Rproj$
2+
^\.Rproj\.user$

.gitignore

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,3 @@
1-
# History files
1+
.Rproj.user
22
.Rhistory
3-
.Rapp.history
4-
5-
# Session Data files
63
.RData
7-
8-
# Example code in package build process
9-
*-Ex.R
10-
11-
# Output files from R CMD build
12-
/*.tar.gz
13-
14-
# Output files from R CMD check
15-
/*.Rcheck/
16-
17-
# RStudio files
18-
.Rproj.user/
19-
20-
# produced vignettes
21-
vignettes/*.html
22-
vignettes/*.pdf
23-
24-
# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
25-
.httr-oauth
26-
27-
# knitr and R markdown default cache directories
28-
/*_cache/
29-
/cache/
30-
31-
# Temporary files created by R markdown
32-
*.utf8.md
33-
*.knit.md
34-
35-
# Shiny token, see https://shiny.rstudio.com/articles/shinyapps.html
36-
rsconnect/

DESCRIPTION

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Package: opentripplanner
2+
Title: Open Trip Planner for R
3+
Version: 0.0.0.9000
4+
Authors@R: c(
5+
person("Marcus", "Young", email = "[email protected]", role = c("aut", "cre")),
6+
person("Malcolm", "Morgan", email = "[email protected]", role = c("aut"), comment = c(ORCID = "0000-0002-9488-9183")),
7+
person("Robin", "Lovelace", role = c("ctb"))
8+
)
9+
Description: An interface for Open Trip Planner <http://www.opentripplanner.org/>.
10+
OpenTripPlanner (OTP) is an open source platform for multi-modal and multi-agency
11+
journey planning written in Java. OTP provides a REST API which Open Trip Planner
12+
for R uses to connect to OTP.
13+
License: GPL-3
14+
Encoding: UTF-8
15+
LazyData: true
16+
RoxygenNote: 6.0.1

NAMESPACE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Generated by roxygen2: do not edit by hand
2+
3+
export(hello)

R/hello.R

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Hello, world!
2+
#
3+
# This is an example function named 'hello'
4+
# which prints 'Hello, world!'.
5+
#
6+
# You can learn more about package authoring with RStudio at:
7+
#
8+
# http://r-pkgs.had.co.nz/
9+
#
10+
# Some useful keyboard shortcuts for package authoring:
11+
#
12+
# Build and Reload Package: 'Ctrl + Shift + B'
13+
# Check Package: 'Ctrl + Shift + E'
14+
# Test Package: 'Ctrl + Shift + T'
15+
16+
#' Hello, World.
17+
#'
18+
#' Prints 'Hello World'.
19+
#'
20+
#' @examples
21+
#' hello()
22+
23+
#' @export
24+
hello <- function() {
25+
print("Hello, world!")
26+
}

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
1-
# otpr
2-
Development of an API wrapper for OpenTripPlanner (OTP) as an R package
1+
# Open Trip Planner for R
2+
3+
The goal of Open Trip Planner for R is to provide a simple R interface to Open Trip Planner (OTP).
4+
5+
## Installation - Open Trip Planner
6+
7+
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.
8+
9+
10+
## Installation - R Package
11+
12+
Install the package with **devtools** as follows:
13+
14+
```{r install, eval=FALSE}
15+
# install.packages("devtools")
16+
devtools::install_github("marcusyoung/opentripplanner")
17+
```

man/hello.Rd

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

opentripplanner.Rproj

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Version: 1.0
2+
3+
RestoreWorkspace: No
4+
SaveWorkspace: No
5+
AlwaysSaveHistory: Default
6+
7+
EnableCodeIndexing: Yes
8+
UseSpacesForTab: Yes
9+
NumSpacesForTab: 2
10+
Encoding: UTF-8
11+
12+
RnwWeave: Sweave
13+
LaTeX: pdfLaTeX
14+
15+
AutoAppendNewline: Yes
16+
StripTrailingWhitespace: Yes
17+
18+
BuildType: Package
19+
PackageUseDevtools: Yes
20+
PackageInstallArgs: --no-multiarch --with-keep.source
21+
PackageRoxygenize: rd,collate,namespace

0 commit comments

Comments
 (0)