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

vt_kable_* is hardcoded to be latex #101

Closed thebioengineer closed 3 years ago

thebioengineer commented 3 years ago

for almost all vt_kable_* functions, the format argument is set to latex by default. Can we get away from setting it and just allow user to set via ... to kable? or not set at all?


vt_kable_* <- function(data, ...){
   ## function guts
   kable(data, ...)
}
mariev commented 3 years ago

I think the original intent was that minimal call to vt_kable* would give the object that SCHARP uses. I think we can get around this if we include knitr::opts_knit$set(out.format = "latex") in setup chunk for all templates

thebioengineer commented 3 years ago

if we render to pdf, kable would automatically do this though - is there a specific need to define the format?

mariev commented 3 years ago

addressed via #110 & #115