Giter VIP home page Giter VIP logo

Comments (6)

teunbrand avatar teunbrand commented on June 26, 2024 1

I've tested a little bit and it all seems to work fine with glue 1.6.2 but not 1.7.0.

I think the issue is as follows. ggplot2 throws a special error when facetting columns are absent, like for the geom_hline() case. This error is then caught and is given special treatment (i.e. it applies to all facets). However, glue now wraps errors (see tidyverse/glue#294) that hide the special ggplot2 error. The special error is still there, but it doesn't get caught as such.

from ggplot2.

teunbrand avatar teunbrand commented on June 26, 2024

Thanks for the report! Did this code used to work (also with geom_hline()) and no longer does?

from ggplot2.

sirallen avatar sirallen commented on June 26, 2024

Yes, it worked previously -- I auto-updated some packages (not sure which ones) and now it no longer works.

from ggplot2.

teunbrand avatar teunbrand commented on June 26, 2024

Thanks that is helpful to know. I can reproduce this on my end, but can I ask you about the versions of R, ggplot2, scales and glue you're using anyway?

from ggplot2.

sirallen avatar sirallen commented on June 26, 2024
R version 4.3.2 (2023-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Big Sur 11.4

... 

other attached packages:
[1] ... glue_1.7.0    ggplot2_3.4.4 ...

loaded via a namespace (and not attached):
 [1]  ... scales_1.3.0    ...

from ggplot2.

sirallen avatar sirallen commented on June 26, 2024

@teunbrand Thank you for investigating!

from ggplot2.

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.