Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated usage of size argument from {ggplot2} #6

Open
fkohrt opened this issue May 1, 2024 · 0 comments
Open

Deprecated usage of size argument from {ggplot2} #6

fkohrt opened this issue May 1, 2024 · 0 comments

Comments

@fkohrt
Copy link
Contributor

fkohrt commented May 1, 2024

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant