-
Notifications
You must be signed in to change notification settings - Fork 10
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
Feature: generate a HTML report directly from an RMarkdown template #141
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add function which enables generating HTML reports directly from an existing RMarkdown document / template.
Unresolved issue
Necessary for report to run smoothly if a variable does not exist
Handle situations where 'replacement' is matched in the column names. And added more helpful comments
'Frequency of weekend work' visual now has reversed x-axis
And minor bug fixes including errors which emerge when no data is available
1. TOC numbering go 1-8 2. Remove 'Balance - ' from first page 3. Remove 'sample' in 'sample glossary'
Rename "Balance" to "Collaboration", and "After-hours" to "Balance"
Update layout and metrics
Note: removed original version embedded in report
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This branch adds a
generate_report2()
function which enables generating HTML reports directly from an existing RMarkdown document / template. This is different fromgenerate_report()
, which instead creates a RMarkdown document from scratch by writing individual code chunks together.Changes
The changes made in this PR are:
generate_report2()
inst
folders for testing purposes.wellbeing_report()
as the first working report using the newgenerate_report2()
implementation.create_tracking
which produces a line chart trend visual that shows the average and the rolling 4 week average for a given metric. This is used withinwellbeing_report()
itself.Checks
roxygen2::roxygenise()
has been run prior to merging to ensure that.Rd
andNAMESPACE
files are up to date.NEWS.md
has been updated.Notes
This fixes #<issue_number>
<other things, such as how to incorporate new changes>