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

Improve error messaging in modify_header() #914

Closed
ddsjoberg opened this issue Jun 2, 2021 · 3 comments · Fixed by #1177
Closed

Improve error messaging in modify_header() #914

ddsjoberg opened this issue Jun 2, 2021 · 3 comments · Fixed by #1177
Labels
hackathon help wanted Extra attention is needed
Milestone

Comments

@ddsjoberg
Copy link
Owner

Here's an example of the unclear messaging
https://stackoverflow.com/questions/67797401/glue-cannot-interpolate-functions-into-strings-object-n-is-a-function/67797539#67797539

@ddsjoberg ddsjoberg added the help wanted Extra attention is needed label Jun 2, 2021
@ddsjoberg
Copy link
Owner Author

this same messaging should be added to add_n() as well

@ddsjoberg
Copy link
Owner Author

this could perhaps also be added to the df_stats assembly of the stats columns

@ddsjoberg
Copy link
Owner Author

Something like this

list(N = 12L, level = "Drug") %>%
  imap(~glue("{{.field {.y}}} ({{.cls {class(.x)[1]}}})")) %>%
  paste(collapse = ", ") %>%
  cli::cli_alert()

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hackathon help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant