-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from asiripanich/0.2.0
0.2.0
- Loading branch information
Showing
11 changed files
with
732 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Package: tfnswapi | ||
Type: Package | ||
Title: Access TfNSW Open Data from R | ||
Version: 0.1.0 | ||
Version: 0.2.0 | ||
Author: Amarin Siripanich | ||
Maintainer: Amarin Siripanich <[email protected]> | ||
Description: Access TfNSW Open Data from R. | ||
|
@@ -15,12 +15,14 @@ Suggests: | |
testthat | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.1.1 | ||
Depends: | ||
R (>= 3.5.0) | ||
Imports: | ||
sf (>= 0.9.0), | ||
magrittr (>= 2.0.0), | ||
httr, | ||
checkmate, | ||
jsonlite, | ||
stringr, | ||
cli, | ||
glue | ||
httr (>= 1.4.0), | ||
checkmate (>= 2.0.0), | ||
jsonlite (>= 1.7.0), | ||
stringr (>= 1.4.0), | ||
cli (>= 2.0.0), | ||
glue (>= 1.4.0), | ||
RProtoBuf (>= 0.4.17) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export("%>%") | ||
export(tfnswapi_browse) | ||
export(tfnswapi_get) | ||
export(tfnswapi_get_api_key) | ||
export(tfnswapi_get_response) | ||
export(tfnswapi_has_api_key) | ||
export(tfnswapi_register) | ||
importFrom(magrittr,"%>%") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
# tfnswapi 0.2.0 | ||
|
||
* You now can quickly browse TfNSW API with `tfnswapi_browse()`. | ||
* `tfnswapi_get()` is now able to parse 'application/x-google-protobuf', the protobuf format of GTFS realtime. | ||
|
||
# tfnswapi 0.1.0 | ||
|
||
* Added a `NEWS.md` file to track changes to the package. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#' Open API Explorer on your default browser. | ||
#' | ||
#' @export | ||
tfnswapi_browse = function() { | ||
utils::browseURL("https://opendata.transport.nsw.gov.au/developers/api-explorer") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.onLoad <- function(libname, pkgname) { | ||
|
||
proto.dir <- system.file("proto", package = "tfnswapi", mustWork = T) | ||
proto.file <- file.path(proto.dir, "gtfs-realtime.proto") | ||
RProtoBuf::readProtoFiles(proto.file) | ||
|
||
} |
Oops, something went wrong.