Skip to content

Commit

Permalink
same
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher committed May 18, 2024
1 parent 5c1a255 commit 814fae9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ Config/testthat/edition: 3
Config/testthat/parallel: true
Config/Needs/website:
rstudio/bslib,
pkgdown,
r-lib/pkgdown,
easystats/easystatstemplate
2 changes: 1 addition & 1 deletion R/data_codebook.R
Original file line number Diff line number Diff line change
Expand Up @@ -466,5 +466,5 @@ print_md.data_codebook <- function(x, ...) {
N = "r"
)
align <- align[colnames(x)]
paste0(unname(align), collapse = "")
paste(unname(align), collapse = "")
}
6 changes: 5 additions & 1 deletion tests/testthat/test-standardize_datagrid.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ test_that("standardize.datagrid", {

x <- insight::get_datagrid(iris, by = "Sepal.Length = c(-1, 0)")
out <- unstandardize(x, select = "Sepal.Length")
expect_identical(out$Sepal.Length[1:2], c(mean(iris$Sepal.Length) - sd(iris$Sepal.Length), mean(iris$Sepal.Length)), tolerance = 1e-3)
expect_identical(
out$Sepal.Length[1:2],
c(mean(iris$Sepal.Length) - sd(iris$Sepal.Length), mean(iris$Sepal.Length)),
tolerance = 1e-3
)
})

0 comments on commit 814fae9

Please sign in to comment.