Skip to content

Commit

Permalink
bug fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
gperrett committed May 24, 2024
1 parent ae24ca5 commit 1a07105
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 14 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ URL: https://priism-center.github.io/plotBart/, https://github.com/priism-center
BugReports: https://github.com/priism-center/plotBart/issues
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.2.0
RoxygenNote: 7.3.1
Depends:
R (>= 2.10),
bartCause (>= 1.0.4),
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export(plot_trank)
export(plot_waterfall)
export(print_balance)
export(print_covariance)
export(table_moderator_c_bin)
import(bartCause)
import(dplyr)
import(ggplot2)
Expand Down
2 changes: 1 addition & 1 deletion R/plot_moderators.R
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,7 @@ rpart_ggplot_ <- function(.model){
#' @import dplyr
#' @importFrom bartCause extract
#' @importFrom rpart rpart
#' @import stats
#'
#' @examples
#' \donttest{
Expand All @@ -677,7 +678,6 @@ table_moderator_c_bin <- function(.model, moderator, .name = 'bin'){

validate_model_(.model)
is_numeric_vector_(moderator)
type <- type[1]

# adjust moderator to match estimand
moderator <- adjust_for_estimand_(.model, moderator)
Expand Down
38 changes: 38 additions & 0 deletions man/table_moderator_c_bin.Rd

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

29 changes: 17 additions & 12 deletions renv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -569,11 +569,12 @@
},
"lifecycle": {
"Package": "lifecycle",
"Version": "1.0.1",
"Version": "1.0.4",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "a6b6d352e3ed897373ab19d8395c98d0",
"Hash": "b8552d117e1b808b09a832f589b79035",
"Requirements": [
"cli",
"glue",
"rlang"
]
Expand Down Expand Up @@ -825,13 +826,16 @@
},
"purrr": {
"Package": "purrr",
"Version": "0.3.4",
"Version": "1.0.2",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "97def703420c8ab10d8f0e6c72101e02",
"Repository": "RSPM",
"Hash": "1cba04a4e9414bdefc9dcaa99649a8dc",
"Requirements": [
"cli",
"lifecycle",
"magrittr",
"rlang"
"rlang",
"vctrs"
]
},
"ragg": {
Expand Down Expand Up @@ -893,10 +897,10 @@
},
"rlang": {
"Package": "rlang",
"Version": "1.0.4",
"Version": "1.1.3",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "6539dd8c651e67e3b55b5ffea106362b",
"Repository": "RSPM",
"Hash": "42548638fae05fd9a9b5f3f437fbbbe2",
"Requirements": []
},
"rmarkdown": {
Expand Down Expand Up @@ -1112,13 +1116,14 @@
},
"vctrs": {
"Package": "vctrs",
"Version": "0.4.1",
"Version": "0.6.5",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "8b54f22e2a58c4f275479c92ce041a57",
"Repository": "RSPM",
"Hash": "c03fa420630029418f7e6da3667aac4a",
"Requirements": [
"cli",
"glue",
"lifecycle",
"rlang"
]
},
Expand Down

0 comments on commit 1a07105

Please sign in to comment.