Git Product home page Git Product logo

Comments (8)

hrbrmstr avatar hrbrmstr commented on September 12, 2024

it may work if load ggplot2 before you install/update it but that might not be possible with devtools::update_packages() if you use dev versions of ggplot2.

i'm trying to compensate for an error in the way ggplot2 specifies function links.

I do: https://github.com/hrbrmstr/hrbrthemes/blob/master/R/scales.r#L13 to avoid having to replicate the docs in ggplot2 scales but b/c of https://github.com/tidyverse/ggplot2/blob/4255cd8341ad1072036186e5d34ad2c1b12221b3/R/scale-discrete-.r#L12 it fails miserably. I'm not inclined to replicate the scales docs, but i agree this def needs to be kept open since this won't get to CRAN the way I've got it.

i was avoiding just making a local "alias" for the ggplot2 function b/c then i have to declare all the stuff i use from ggplot2 but that may make more sense now due to this issue.

i'll poke at it and really appreciate this report as i wld not have seen it on my end.

from hrbrthemes.

hrbrmstr avatar hrbrmstr commented on September 12, 2024

I just pushed up what I'm hoping is a quick fix (as I didn't get any errors on my end and the README + test suite works fine). Give it a go when you get a chance pls.

from hrbrthemes.

pkq avatar pkq commented on September 12, 2024

Thanks for the quick response. This results in a different error: 'expand_scale' is not an exported object from 'namespace:ggplot2'. This occurs immediately after ** preparing package for lazy loading, whereas before, devtools would install the help and vignettes, and then error out at ** testing if installed package can be loaded. Let me know if there's any other information that would be useful.

from hrbrthemes.

hrbrmstr avatar hrbrmstr commented on September 12, 2024

This is super helpful. Are you running CRAN ggplot2 or GH? I think the issue is it's exported in GH ggplot2 (https://github.com/tidyverse/ggplot2/blob/master/NAMESPACE#L275) but not CRAN ggplot2

from hrbrthemes.

hrbrmstr avatar hrbrmstr commented on September 12, 2024

ok, i bit the bullet and just reproduced the roxygen docs. can you give it a go(as you have time) and also make sure i got your details right in the DESCRIPTION file? (this has been rly rly helpful and I'd like to add you as a contributor)

from hrbrthemes.

pkq avatar pkq commented on September 12, 2024

Yes, running CRAN ggplot2. Reproducing the oxygen docs seems to have worked; installation is successful, and the package loads as expected. Out of curiosity, what made you decide to reproduce, rather than require GH ggplot2?

Thanks again for responding so quickly, and for offering to list me as a contributor. Yes, details are correct. 👍

from hrbrthemes.

hrbrmstr avatar hrbrmstr commented on September 12, 2024

from hrbrthemes.

pkq avatar pkq commented on September 12, 2024

Glad it was helpful. I really appreciate you making it so easy to make great looking plots!

from hrbrthemes.

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.