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

update .$gt_calls code #40

Closed
ddsjoberg opened this issue Mar 31, 2019 · 1 comment
Closed

update .$gt_calls code #40

ddsjoberg opened this issue Mar 31, 2019 · 1 comment

Comments

@ddsjoberg
Copy link
Owner

Each {gtsummary} function that assists in creating/modifying tables added {gt} code to a list called gt_calls. This list contains one command per entry. For example:

> t = 
+   trial %>%
+   tbl_summary()
> t$gt_calls[1:2]
$gt
[1] "gt(data = x$table_body)"

$cols_label_label
[1] "cols_label(label = md('**Characteristic**'))"

Each command is stored as a string, but think this is not best practices. Probably, each of the commands should be stored as a quoted expression using quote() or rlang::expr()? Look into updating this.

@ddsjoberg ddsjoberg changed the title update print() code update .$gt_calls code Mar 31, 2019
@ddsjoberg
Copy link
Owner Author

updated to all calls are glue objects

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

No branches or pull requests

1 participant