Skip to content

Commit

Permalink
style: added Sam's suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sbreitbart-NOAA committed Nov 13, 2024
1 parent 647de57 commit c9516e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ extract_caps_alttext <- function(topic_label,

# extract plot or table's caption and alt text
cap <- captions_alttext_df |>
dplyr::filter(label == topic_label) |>
dplyr::filter(type == fig_or_table) |>
dplyr::filter(label == topic_label,
type == fig_or_table) |>
dplyr::select(caption) |>
as.character()

if (fig_or_table == "figure"){
alt_text <- captions_alttext_df |>
dplyr::filter(label == topic_label) |>
dplyr::filter(type == "figure") |>
dplyr::filter(label == topic_label,
type == "figure") |>
dplyr::select(alt_text) |>
as.character()

Expand Down

0 comments on commit c9516e6

Please sign in to comment.