Skip to content

Commit

Permalink
ggalign_option is not a vector, use structure() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Nov 7, 2024
1 parent 80bd2d0 commit 7f4cb1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot-.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ new_controls <- function(plot_data = new_plot_data(),
}

new_option <- function(name, option, ..., class = character()) {
new_vctr(option,
structure(option,
`__ggalign.option_name__` = name, ...,
class = c(class, "ggalign_option")
)
Expand Down

0 comments on commit 7f4cb1d

Please sign in to comment.