Skip to content

Commit

Permalink
v0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DanChaltiel committed Nov 12, 2023
1 parent 1ad5a55 commit 3b1944d
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 21 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ TODO\.R
DEV\.R
tests/testthat/test-dummy.R
.Renviron
cran-comments.md
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 0.6.2
Date: 2023-05-27 08:29:29 UTC
SHA: 04fc653856a03d92de305b31ba51db89ec54ef3c
Version: 0.7.0
Date: 2023-11-12 20:14:55 UTC
SHA: f314765b3ec282b02e9968afa5c9e3234c2f4c51
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: crosstable
Title: Crosstables for Descriptive Analyses
Version: 0.6.2.9011
Version: 0.7.0
Authors@R:
c(person(given = "Dan",
family = "Chaltiel",
Expand Down
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Crosstables for descriptive analyses. See documentation at <https://danchaltiel.github.io/crosstable/> and browse code at <https://github.com/DanChaltiel/crosstable>.

# crosstable 0.7.0 <sub><sup>2023-xx-xx</sup></sub>
# crosstable 0.7.0 <sub><sup>2023-11-12</sup></sub>

#### New features

- New officer helper `body_add_table_section()`, which adds a table (crosstable or flextable) which can be surrounded by a title (lvl3 by default), a legend, and/or a short sentence.
- New officer helper `body_add_table_section()`, which adds a table (crosstable or flextable) which can be surrounded by a title (level 3 by default), a legend, and/or a short sentence.
- `set_label()` now accepts a function as a value (e.g. `set_label(mtcars2, toupper)`).
- Argument `format_fixed(scientific)` can now be `FALSE` to force standard format. Can be set through `options(crosstable_scientific_log=FALSE)` (#49).
- New argument `format_fixed(epsilon)` to format values as `"<epsilon"`. Can be set through `options(crosstable_format_epsilon=0.001)`.
Expand Down
10 changes: 5 additions & 5 deletions R/options.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
#' @param normal_squish Should you squish text in normal paragraphs?
#' @param title_squish Should you squish text in headers paragraphs?
#' @param allow_break allow crosstable rows to break across pages
#' @param style_normal For specifying styles used in your {officer} template.
#' @param style_character For specifying styles used in your {officer} template.
#' @param style_strong For specifying styles used in your {officer} template.
#' @param style_image For specifying styles used in your {officer} template.
#' @param style_legend For specifying styles used in your {officer} template.
#' @param style_normal For specifying styles used in your `{officer}` template.
#' @param style_character For specifying styles used in your `{officer}` template.
#' @param style_strong For specifying styles used in your `{officer}` template.
#' @param style_image For specifying styles used in your `{officer}` template.
#' @param style_legend For specifying styles used in your `{officer}` template.
#' @param style_heading For specifying styles used by headings on different levels. Levels will be pasted in the end (e.g. use `"title"` if your level 2 heading style is `"title2"`).
#' @param style_list_ordered,style_list_unordered For specifying styles used by lists in the `rdocx` template. Needed for [body_add_list()] to work.
#' @param scientific_log the maximum power a number can have before being formatted as scientific. Default to 4 so applies on numbers <1e-4 or >1e4.
Expand Down
38 changes: 34 additions & 4 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,23 @@
"identifier": "crosstable",
"description": "Create descriptive tables for continuous and categorical variables. Apply summary statistics and counting function, with or without a grouping variable, and create beautiful reports using 'rmarkdown' or 'officer'. You can also compute effect sizes and statistical tests if needed.",
"name": "crosstable: Crosstables for Descriptive Analyses",
"relatedLink": "https://danchaltiel.github.io/crosstable/",
"relatedLink": ["https://danchaltiel.github.io/crosstable/", "https://CRAN.R-project.org/package=crosstable"],
"codeRepository": "https://github.com/DanChaltiel/crosstable/",
"issueTracker": "https://github.com/DanChaltiel/crosstable/issues/",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.6.2",
"version": "0.7.0",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.1.3 (2022-03-10)",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"author": [
{
"@type": "Person",
Expand Down Expand Up @@ -154,6 +160,18 @@
},
"sameAs": "https://CRAN.R-project.org/package=Hmisc"
},
{
"@type": "SoftwareApplication",
"identifier": "hms",
"name": "hms",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=hms"
},
{
"@type": "SoftwareApplication",
"identifier": "jsonlite",
Expand All @@ -178,6 +196,18 @@
},
"sameAs": "https://CRAN.R-project.org/package=knitr"
},
{
"@type": "SoftwareApplication",
"identifier": "lubridate",
"name": "lubridate",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=lubridate"
},
{
"@type": "SoftwareApplication",
"identifier": "openxlsx",
Expand Down Expand Up @@ -493,10 +523,10 @@
},
"SystemRequirements": null
},
"fileSize": "1505.071KB",
"fileSize": "1530.568KB",
"releaseNotes": "https://github.com/DanChaltiel/crosstable/blob/master/NEWS.md",
"readme": "https://github.com/DanChaltiel/crosstable/blob/main/README.md",
"contIntegration": ["https://app.codecov.io/gh/DanChaltiel/crosstable?branch=main", "https://github.com/DanChaltiel/crosstable/actions"],
"contIntegration": ["https://app.codecov.io/gh/DanChaltiel/crosstable?branch=main", "https://github.com/DanChaltiel/crosstable/actions/workflows/check-standard.yaml"],
"developmentStatus": "https://lifecycle.r-lib.org/articles/stages.html",
"keywords": ["r", "descriptive-statistics", "rstats", "html-report", "frequency-table", "msword", "flextable", "officer"]
}
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

## Test environments

* local R installation, R 4.2.1
* local R installation, R 4.1.3
* check_rhub()
* check_win_devel()

Expand Down
2 changes: 2 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Acknowledgement
Autofit
Barnier's
CMD
Codecov
Consolas
CrosstableMacros
Expand All @@ -20,6 +21,7 @@ ORCID
POSIXt
RStudio
RStudio's
Reimplement
Rmarkdown
Rmd
StackOverflow
Expand Down
10 changes: 5 additions & 5 deletions man/crosstable_options.Rd

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

0 comments on commit 3b1944d

Please sign in to comment.