Coder Social home page Coder Social logo

Comments (5)

clauswilke avatar clauswilke commented on August 27, 2024

Thanks for bringing this up. This is caused by a change in the latest released ggplot2. A couple of things to consider for a fix:

  • The moment this is fixed, cowplot stops working with older versions of ggplot2. So this dependency needs to be recorded in the DESCRIPTION file.
  • We should make sure we find all occurrences in the code that can cause this problem, so we need to fix only once.

Also, a general comment: When reporting issues, it's most productive to try to come up with a minimal example that causes the problem. Minimal examples should definitely not depend on other packages or have all sorts of irrelevant, distracting code. Here, I believe the problem is caused by using certain cowplot themes, but I can't tell from the provided example.

from cowplot.

clauswilke avatar clauswilke commented on August 27, 2024

I see you provided a minimal example here: #189 (comment)

from cowplot.

Yunuuuu avatar Yunuuuu commented on August 27, 2024

Oh, I'll put it here

from cowplot.

Yunuuuu avatar Yunuuuu commented on August 27, 2024

A minimal example

library(ggplot2)
library(cowplot)


ggplot(mtcars) +
    geom_point(aes(mpg, drat)) +
    theme_cowplot()

Warning messages:
1: The `size` argument of `element_line()` is
deprecated as of ggplot2 3.4.0.
ℹ Please use the `linewidth` argument instead.
ℹ The deprecated feature was likely used in the
  cowplot package.
  Please report the issue at
  <https://github.com/wilkelab/cowplot/issues>.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to
see where this warning was generated. 
2: The `size` argument of `element_rect()` is
deprecated as of ggplot2 3.4.0.
ℹ Please use the `linewidth` argument instead.
ℹ The deprecated feature was likely used in the
  cowplot package.
  Please report the issue at
  <https://github.com/wilkelab/cowplot/issues>.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to
see where this warning was generated. 

from cowplot.

Yunuuuu avatar Yunuuuu commented on August 27, 2024

fixed by #189

from cowplot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.