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

new print_md.rules #464

Open
mattansb opened this issue Aug 7, 2022 · 1 comment
Open

new print_md.rules #464

mattansb opened this issue Aug 7, 2022 · 1 comment
Assignees

Comments

@mattansb
Copy link
Member

mattansb commented Aug 7, 2022

Should return something like this:

image

Inputs:

  • Rules
  • title (optional)
  • value name (optional)

This can then be used to generate the docs / vignettes more easily.

@mattansb mattansb self-assigned this Aug 7, 2022
mattansb added a commit that referenced this issue Dec 12, 2023
@mattansb
Copy link
Member Author

library(effectsize)

x <- rules(c(0.2, 0.5), c("small", "medium", "large"), name = "ziggi")

print_md(x)
#> 
#> `ziggi`:
#> - **x <= 0.2** - Small
#> - **0.2 < x <= 0.5** - Medium
#> - **0.5 < x** - Large

print_md(x, "Z")
#> 
#> `ziggi`:
#> - **Z <= 0.2** - Small
#> - **0.2 < Z <= 0.5** - Medium
#> - **0.5 < Z** - Large

print_md(x, "Z", "Ziggi (2024) `{.rn}`:")
#> 
#> Ziggi (2024) `ziggi`:
#> - **Z <= 0.2** - Small
#> - **0.2 < Z <= 0.5** - Medium
#> - **0.5 < Z** - Large

Created on 2023-12-12 with reprex v2.0.2

Now to just use it everywhere...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant