Skip to content

Deprecated usage of size argument from {ggplot2} #6

@fkohrt

Description

@fkohrt

This is a non-blocking issue, but one that could be considered in the next update.

When setting a few options, specifically lifecycle_verbosity = "error", we can see that qte uses the deprecated size argument of ggplot2::element_rect():

set.seed(42)
a <- rnorm(25, 1, 1)
b <- rnorm(25, 0, 1)


df <- cbind.data.frame(
  measurement = c(a, b),
  group = rep.int(0:1, c(length(a), length(b)))
)

res <- qte::ci.qte(formla = measurement ~ group, data = df)

withr::with_options(
  list(warnPartialMatchArgs = TRUE,
       warnPartialMatchDollar = TRUE,
       warnPartialMatchAttr = TRUE,
       warn = 2,
       lifecycle_verbosity = "error"
  ), {
    print(qte::ggqte(res))
  })

Results in the following error message:

Error:
! The `size` argument of `element_rect()` is
  deprecated as of ggplot2 3.4.0.
ℹ Please use the `linewidth` argument instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions