Skip to content

Commit

Permalink
fix verdepcheck (#1216)
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Rucki <[email protected]>
  • Loading branch information
pawelru authored Apr 4, 2024
1 parent b2230d4 commit 2badcbf
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 20 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Imports:
broom (>= 0.5.4),
car (>= 3.0-13),
checkmate (>= 2.1.0),
cowplot (>= 0.7.0),
cowplot (>= 1.0.0),
dplyr (>= 1.0.0),
emmeans (>= 1.8.0),
forcats (>= 1.0.0),
Expand Down
2 changes: 1 addition & 1 deletion R/g_forest.R
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ g_forest <- function(tbl,
all(which_arrow) ~ "both",
which_arrow[1] ~ "first",
which_arrow[2] ~ "last",
TRUE ~ NA
TRUE ~ NA_character_
)

# Add CI lines
Expand Down
4 changes: 2 additions & 2 deletions R/utils_ggplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ df2gg <- function(df,
col_lab_fontface = "bold",
hline = TRUE,
bg_fill = NULL) {
# convert NAs to text
df <- as.data.frame(apply(df, 1:2, tidyr::replace_na, replace = "NA"))
# convert to text
df <- as.data.frame(apply(df, 1:2, function(x) if (is.na(x)) "NA" else as.character(x)))

if (col_labels) {
df <- as.matrix(df)
Expand Down
28 changes: 12 additions & 16 deletions man/to_string_matrix.Rd

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

0 comments on commit 2badcbf

Please sign in to comment.