-
Notifications
You must be signed in to change notification settings - Fork 0
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
Label key figures #25
Conversation
DESCRIPTION
Outdated
@@ -1,6 +1,6 @@ | |||
Package: gghdx | |||
Title: HDX Theme, Scales, and Other Conveniences for 'ggplot2' | |||
Version: 0.1.2 | |||
Version: 0.1.2.009 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the 009
indicating here? If following conventions for Semantic Versioning, we'd want to remove leading 0
s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha, so, that .009
was an accident, but actually what I meant was .9000
. In R, it's the standard representation of a development version of the package that sits between semantic releases. This is because it's extremely common for people to access development versions directly from GitHub, so putting that in the DESCRIPTION indicates it sits between any GitHub tagged releases. See dplyr for example, and the R Packages book section on releasing describing the process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha! Yes, that makes sense 😄
man/format_key_figures.Rd
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For one unfamiliar with R packaging... are these files the source for this documentation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes thats right. The @roxygen
tags which are similar to docstrings auto-generate the .Rd
files which then automatically produce that documentation
Nice @caldwellst! Curious about the testing workflows for this repo. How would I install the version of this package associated with this branch (like a release candidate?) to test the function? Or is there a better way to test this code locally on my side? And what impact does the |
@hannahker - a couple ways to do this:
I think i usually just do option 1 so that i can easily checkout and build different versions |
sweet!! i feel like i've used The only thing I am not sure i understand is the name of the function... what makes them key in this context. Key makes me think of the legend key or something. If we were to stick w/ the |
Completely agree on the name change, so did that! Have also made other fixes which hopefully fix the runs on CRAN. |
There is no impact of an |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for clarifying the various points! Tested the new function locally and looks great to me.
Developed a
label_key_figures()
function to allow us to match the key figures style in the HDX style guide, which we are going to use in Signals. Figured better to put in here for longevity.https://data.humdata.org/dataviz-guide/dataviz-elements/#/data-visualization/text