Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 13, 2024
1 parent a377e7c commit 96df952
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions R/check_dag.R
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ print.check_dag <- function(x, ...) {
),
"."
)
current_str <- "\nCurrently"
} else {
msg <- paste0(
msg,
Expand All @@ -456,12 +457,13 @@ print.check_dag <- function(x, ...) {
), "yellow"),
"."
)
current_str <- " Currently"
}
if (is.null(out$current_adjustments)) {
msg <- paste0(msg, " Currently, the model does not adjust for any variables.")
msg <- paste0(msg, current_str, ", the model does not adjust for any variables.")
} else {
msg <- paste0(
msg, " Currently, the model only adjusts for ",
msg, current_str, ", the model only adjusts for ",
datawizard::text_concatenate(out$current_adjustments, enclose = "`"),
"."
)
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/_snaps/check_dag.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@
- alertness, prepared
- alertness, skills_course
- mood, prepared
- mood, skills_course. Currently, the model does not adjust for any variables.
- mood, skills_course.
Currently, the model does not adjust for any variables.

---
Expand Down

0 comments on commit 96df952

Please sign in to comment.