Skip to content

Commit

Permalink
Merge pull request #100 from adibender/devel
Browse files Browse the repository at this point in the history
Add support for regional German election in Hessen
  • Loading branch information
adibender authored Aug 27, 2018
2 parents 65b4317 + 4d17b91 commit 16355be
Show file tree
Hide file tree
Showing 16 changed files with 133 additions and 118 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# coalitions 0.6

## coalitions 0.6.4
- Add scrapers for local German "Hessen" election

## coalitions 0.6.3
- Update HP with new `pkgdown` version

Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ opts_chunk$set(warning=FALSE)
[![DOI](https://joss.theoj.org/papers/10.21105/joss.00606/status.svg)](https://doi.org/10.21105/joss.00606)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1172594.svg)](https://doi.org/10.5281/zenodo.1172594)
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/coalitions)](https://cran.r-project.org/package=coalitions)
[![](https://cranlogs.r-pkg.org/badges/coalitions)](https://cran.r-project.org/package=coalitions)
[![](https://cranlogs.r-pkg.org/badges/grand-total/coalitions)](https://cran.r-project.org/package=coalitions)
[![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)


Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Status](https://codecov.io/github/adibender/coalitions/master.svg)](https://code
[![DOI](https://joss.theoj.org/papers/10.21105/joss.00606/status.svg)](https://doi.org/10.21105/joss.00606)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1172594.svg)](https://doi.org/10.5281/zenodo.1172594)
[![CRAN\_Status\_Badge](https://www.r-pkg.org/badges/version/coalitions)](https://cran.r-project.org/package=coalitions)
[![](https://cranlogs.r-pkg.org/badges/coalitions)](https://cran.r-project.org/package=coalitions)
[![](https://cranlogs.r-pkg.org/badges/grand-total/coalitions)](https://cran.r-project.org/package=coalitions)
[![MIT
license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)

Expand Down
13 changes: 10 additions & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
## Release summary
Added support for regional German election in Hessen

## Test environments
* local OS X install, R 3.4.3
* local ubuntu install, R 3.4.4
* travis (devel and release)
* appveyor (devel and patch)
* win_builder

## R CMD check results

0 errors | 0 warnings | 0 note

* This is a resubmission of a new release.

## Reverse dependencies

This is a new release, so there are no reverse dependencies.
There are no reverse dependencies

## Additional Notes

Adressed "noDL" additional issue by running offending test conditional on capabilities("long.double")
8 changes: 4 additions & 4 deletions docs/articles/diagnostic.html

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

Binary file modified docs/articles/diagnostic_files/figure-html/unnamed-chunk-4-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/diagnostic_files/figure-html/unnamed-chunk-4-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/articles/pooling.html

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

156 changes: 78 additions & 78 deletions docs/articles/workflow.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/index.html

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

7 changes: 7 additions & 0 deletions docs/news/index.html

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

2 changes: 1 addition & 1 deletion docs/reference/get_entryprobability.html

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

4 changes: 2 additions & 2 deletions docs/reference/get_probabilities.html

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

20 changes: 10 additions & 10 deletions docs/reference/get_seats.html

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

18 changes: 7 additions & 11 deletions docs/reference/scrape.html

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

6 changes: 4 additions & 2 deletions tests/testthat/test-workflow.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test_that("workflow stable", {
coalas <- coalitions:::paste_coalitions(coalitions)

## collapse
survey <- .survey_sample %>%
survey <- coalitions:::.survey_sample %>%
filter(pollster=="insa") %>%
unnest() %>%
filter(date == as.Date("2017-08-29"))
Expand All @@ -32,7 +32,9 @@ test_that("workflow stable", {
expect_data_frame(survey$draws[[1]], nrows=10, ncols=7)
expect_equal(colnames(survey$draws[[1]]), survey$survey[[1]]$party)

expect_warning(draw_from_posterior(survey$survey[[1]], nsim=10, correction=.10))
if(capabilities("long.double")) {
expect_warning(drp <- draw_from_posterior(survey$survey[[1]], nsim=10, correction=.1))
}

entry_probs <- get_entryprobability(survey$draws[[1]])
expect_numeric(entry_probs, lower=0, upper=1, all.missing=FALSE, len=7,
Expand Down

0 comments on commit 16355be

Please sign in to comment.