Skip to content

Rv/refactor create metrics #16

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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

ramnathv
Copy link
Contributor

@ramnathv ramnathv commented May 7, 2020

@dgrtwo This PR provides sensible defaults for all documentation fields and optionally allows users to provide them as arguments to create_metrics. Here are some key features:

  1. title and description automatically default to the name of the metric or dimension. We could use snakecase transformations for defaults that work better with shinymetrics.
  2. category and subcategory default to "" as they are used downstream by other functions in shinymetrics like metric_explorer. In the event, they equal "", they are not used to generate metric_full. Ideally, I would like to make both of these required parameters with better defaults. This is key to being able to do neat things like the metric_explorer.

I still need to add tests that test this part of the flow.

ramnathv added 4 commits May 6, 2020 22:03
Allow users to directly pass documentation in the function instead of having to put it in an rmd_file. Use sensible defaults for all documentation fields.
@ramnathv
Copy link
Contributor Author

ramnathv commented May 7, 2020

/style

@ramnathv ramnathv requested a review from dgrtwo May 7, 2020 17:40
@dgrtwo dgrtwo removed their request for review August 1, 2022 14:14
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.

1 participant