Skip to content

Commit

Permalink
snap updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ddsjoberg committed May 24, 2024
1 parent f5ce75a commit fae6d19
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions tests/testthat/_snaps/ard_attributes.survey.design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ard_attributes.survey.design() works

Code
attr(dclus1$variables$sname, "label") <- "School Name"
as.data.frame(ard_attributes(dclus1, variables = c(sname, dname), label = list(
dname = "District Name")))
Output
variable context stat_name stat_label stat
1 sname attributes label Variable Label School Name
2 sname attributes class Variable Class character
3 dname attributes label Variable Label District Name
4 dname attributes class Variable Class character

4 changes: 2 additions & 2 deletions tests/testthat/_snaps/ard_survival_survfit_diff.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
times = c(25, 50))
Condition
Error in `ard_survival_survfit_diff()`:
! The <survift> object passed in argument `x` must be stratified by a single variable.
! The <survfit> object passed in argument `x` must be stratified by a single variable.

---

Expand All @@ -14,7 +14,7 @@
cards::ADTTE, constant = 1L)), times = c(25, 50))
Condition
Error in `ard_survival_survfit_diff()`:
! The <survift> object's stratifying variable must have 2 or more levels.
! The <survfit> object's stratifying variable must have 2 or more levels.

---

Expand Down

0 comments on commit fae6d19

Please sign in to comment.