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

Fix "target set by" box not displaying; remove some logic from Rmd details template #122

Merged
merged 20 commits into from
Nov 11, 2024

Conversation

francisbarton
Copy link
Collaborator

@francisbarton francisbarton commented Mar 13, 2024

Please complete the following information:

  1. A reference to the issue addressed by this pull-request:

  2. A description of the changes proposed in this PR:

  3. Add @mentions for the people who will review this PR:

This PR is in response to issue #121 (see also issue #98).

Changes related to this issue have been rebased onto branch issue_117 for report production purposes, so this PR incorporates the commits on that branch as well. If PR #118 is merged into main in advance, this PR should become much "smaller".

This PR:

  • changes the output of calculate_stale_data() from a logical (TRUE/FALSE) to a string ("stale"/"fresh"). So it can be used directly in the Rmd as a CSS class name. The logical value wasn't being consumed elsewhere in the package as far as I can see
  • calculate_stale_data() is now vectorised and happens within the make bundle step instead of in the make report step (test expectations have been tweaked in response)
  • moves some ifelse logic from the Rmd details template into the make_bundle step
  • changes "last point" symbol for time between charts to a geom_annotate() step instead of a geom_point, as the use of geom_point() was generating a warning message on render.
  • bumps minor version number.

@ThomUK please review.

Please confirm that you have:

  • Run devtools::test() and fixed all failing tests and warnings.
  • Added suppressMessages() to any test message which breaks the test progress UI.

Copy link
Owner

@ThomUK ThomUK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@ThomUK ThomUK merged commit bc87155 into main Nov 11, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

"target_text" and "target_set_by" logic in Rmd template need looking at
2 participants