Skip to content

Commit

Permalink
Release v1.1.1
Browse files Browse the repository at this point in the history
Merge pull request #9 from miraisolutions/release/v1.1.1
  • Loading branch information
riccardoporreca authored Sep 27, 2019
2 parents 086c132 + 9f632b4 commit 21468a7
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: vbzdelays
Title: VBZ Delay Analysis
Version: 1.1.0
Version: 1.1.1
Authors@R:
person(given = "Mirai",
family = "Labs",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# vbzdelays 1.1.1

* Rendering of the full website is now tested on Travis upon PR (#7).

# vbzdelays 1.1.0

* `plot_delays_by_weekday_hour()` extended with the percentage of delayed connections (#1).
Expand Down
1 change: 0 additions & 1 deletion R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ barplot_by_weekday_hour <- function(delays) {
#' plot_delays_by_weekday_hour(data)
#'
#' @import dplyr
#' @import ggplot2
#' @export
plot_delays_by_weekday_hour <- function(data) {
data %>%
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ data <- vbzdelays::get_line_data(line = 11)

Plot delays by hour per weekday

```r
plot_delays_by_weekday_hour(data)
``` r
vbzdelays::plot_delays_by_weekday_hour(data)
```

Produce delay analysis report by line

```r
report <- render_line_report(line = 11, tempdir())
``` r
report <- vbzdelays::render_line_report(line = 11, tempdir())
browseURL(report)
```

Create a website as collection of reports for all lines

```r
``` r
website <- vbzdelays::render_site(output_dir = tempfile("_site"))
browseURL(website)
```
2 changes: 1 addition & 1 deletion man/render_line_report.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions tests/testthat/test-render_site.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
test_that("the whole website can be rendered", {
# skip unless part of a pull requests run on Travis
skip_if(Sys.getenv("TRAVIS_PULL_REQUEST", "false") == "false")
index <- render_site(output_dir = tempfile())
expect_true(file.exists(index))
expect_equal(basename(index), "index.html")
})

0 comments on commit 21468a7

Please sign in to comment.