phuse-org / valtools

Validation framework for R packages used in clinical research and drug development.
https://phuse-org.github.io/valtools/
Other
51 stars 10 forks source link

kable formatting for author lists #83

Closed thebioengineer closed 3 years ago

thebioengineer commented 3 years ago

Missing a kable-ing function for author lists.

mariev commented 3 years ago

looking at usage for vt_scrape_tags_from and I see that we need to reshape first if we want to have a true vt_scrape_function experience, i.e. a data.frame that can be easily fed to kable() calls. Do we need to add this as well? edit: and if so, should vt_scrape_tags_from migrate to an internal function?

example:

all_authors <- do.call("rbind", vt_scrape_tags_from(
    type = "functions",
    tags = c("editor", "editDate", "export"),
    src = {{pkg_name}},
    ref = valtools:::get_config_working_dir()
  ))
thebioengineer commented 3 years ago

looking at usage for vt_scrape_tags_from and I see that we need to reshape first if we want to have a true vt_scrape_function experience, i.e. a data.frame that can be easily fed to kable() calls. Do we need to add this as well? edit: and if so, should vt_scrape_tags_from migrate to an internal function?

example:

all_authors <- do.call("rbind", vt_scrape_tags_from(
    type = "functions",
    tags = c("editor", "editDate", "export"),
    src = {{pkg_name}},
    ref = valtools:::get_config_working_dir()
  ))

I think that makes sense, and make an external "vt_scrape_authors()" function?