Skip to content

Commit

Permalink
Merge pull request #219 from ddsjoberg/217-CRAN_violation
Browse files Browse the repository at this point in the history
217 Update wit no installation of packages in vignette
  • Loading branch information
ddsjoberg authored Aug 20, 2019
2 parents e0829d8 + 9e37081 commit 6cf8c52
Show file tree
Hide file tree
Showing 73 changed files with 489 additions and 876 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: gtsummary
Title: Presentation-Ready Data Summary and Analytic Result
Tables
Version: 1.2.0.9001
Version: 1.2.1
Authors@R:
c(person(given = "Daniel D.",
family = "Sjoberg",
Expand Down
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# gtsummary (development version)
# gtsummary 1.2.1

* Vignettes install the {gt} package to a temporary directory (required for CRAN check) (#217)

* Added ability to name custom `add_p()` tests (#213)

Expand Down
6 changes: 4 additions & 2 deletions R/add_p.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@
#' tbl_summary(by = trt) %>%
#' add_p()
#'
#' \donttest{
#' # Conduct a custom McNemar test for response,
#' # Function must return a named list(p = ?, test = ?)
#' # Function must return a named list(p = 0.05, test = "McNemar's test")
#' # Function names begins with 'add_p_test.' and ends with the alias
#' add_p_test.mcnemar <- function(data, variable, by, ...) {
#' result <- list()
#' result$p <- stats::mcnemar.test(data[[variable]], data[[by]])$p.value
Expand All @@ -61,7 +63,7 @@
#' trial[c("response", "trt")] %>%
#' tbl_summary(by = trt) %>%
#' add_p(test = vars(response) ~ "mcnemar")
#'
#' }
#' @section Example Output:
#' \if{html}{Example 1}
#'
Expand Down
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"codeRepository": "http://www.danieldsjoberg.com/gtsummary/",
"issueTracker": "https://github.com/ddsjoberg/gtsummary/issues",
"license": "https://spdx.org/licenses/MIT",
"version": "1.2.0.9001",
"version": "1.2.1",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down Expand Up @@ -431,7 +431,7 @@
],
"releaseNotes": "https://github.com/ddsjoberg/gtsummary/blob/master/NEWS.md",
"readme": "https://github.com/ddsjoberg/gtsummary/blob/master/README.md",
"fileSize": "1356.718KB",
"fileSize": "1357.021KB",
"contIntegration": [
"https://travis-ci.org/ddsjoberg/gtsummary",
"https://ci.appveyor.com/project/ddsjoberg/gtsummary",
Expand Down
27 changes: 0 additions & 27 deletions cran-comments.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/CODE_OF_CONDUCT.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/CONTRIBUTING.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/ISSUE_TEMPLATE.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/LICENSE-text.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/LICENSE.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/SUPPORT.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/articles/index.html

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

Loading

0 comments on commit 6cf8c52

Please sign in to comment.