Skip to content

Commit

Permalink
execute contr() example in R CMD check
Browse files Browse the repository at this point in the history
closes #461
  • Loading branch information
IndrajeetPatil committed Oct 6, 2023
1 parent b42571d commit 0f467d0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: datawizard
Title: Easy Data Wrangling and Statistical Transformations
Version: 0.9.0
Version: 0.9.0.1
Authors@R: c(
person("Indrajeet", "Patil", , "[email protected]", role = "aut",
comment = c(ORCID = "0000-0003-1995-6531", Twitter = "@patilindrajeets")),
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# datawizard 0.9.0.9000 (development version)

# datawizard 0.9.0

NEW FUNCTIONS
Expand Down
7 changes: 4 additions & 3 deletions R/contrs.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
#'
#' @seealso [stats::contr.sum()]
#'
#' @examples
#' if (FALSE) {
#' @examplesIf !identical(Sys.getenv("IN_PKGDOWN"), "true")
#' \donttest{
#' data("mtcars")
#'
#' mtcars <- data_modify(mtcars, cyl = factor(cyl))
Expand Down Expand Up @@ -83,7 +83,8 @@
#' }
#'
#' @export
contr.deviation <- function(n, base = 1,
contr.deviation <- function(n,
base = 1,
contrasts = TRUE,
sparse = FALSE) {
cont <- stats::contr.treatment(n,
Expand Down
5 changes: 3 additions & 2 deletions man/contr.deviation.Rd

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

0 comments on commit 0f467d0

Please sign in to comment.