Skip to content

Commit

Permalink
Prepare for 1.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Neal Richardson committed Jan 14, 2019
1 parent 48cb1aa commit e9e8bd5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
Package: crunchtabs
Type: Package
Title: Custom Report Generation for Crunch Datasets
Description: This package provides functions for report generation:
- Toplines (one-way frequency tables),
- Banners (cross tabulations).
Version: 1.1.1
Description: In order to generate custom survey reports, this package provides
functions for computing 'toplines' (one-way frequency summaries) and
'banners' (cross-tabulations) of datasets in the Crunch
(<https://crunch.io/>) web service. Reports can be written in 'PDF' format
using 'LaTeX' or in Microsoft Excel '.xlsx' files.
Version: 1.2.0
Authors@R: c(
person("Persephone", "Tsebelis", role="aut"),
person("Kamil", "Sedrowicz", role="aut"),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# crunchtabs 1.1.1 (under development)
# crunchtabs 1.2.0

* Fix .tex/.pdf reports when variable names (table headers) contain newline characters (#36)
* Fix .tex/.pdf topline reports containing categorical array variables with subtotals
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-hyp-testing.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ with_mock_tabs("ds2_book1.json", "ds2_mt1.json", expr = {
"A few times a year", "Seldom", "Never", "Don't know")),
.Names = "pew_churatd"))

expect_equivalent(rowmargin, expected_row_margin)
expect_equivalent(colmargin, expected_col_margin)
expect_equivalent(as.array(rowmargin), expected_row_margin)
expect_equivalent(as.array(colmargin), expected_col_margin)

expect_equivalent(as.vector(bases(subtable, margin=1)), c(254, 164, 88, 432, 62))
expect_equivalent(as.vector(bases(subtable, margin=2)), c(98, 172, 62, 137, 211, 297, 23))
Expand Down

0 comments on commit e9e8bd5

Please sign in to comment.