pharmaverse / tidytlg

The goal of tidytlg is to generate tables, listings, and graphs (TLG) using Tidyverse.
https://pharmaverse.github.io/tidytlg/
Other
33 stars 6 forks source link

gentlg function argument "tlf" accepts "Graph" as an input #46

Open adcascone opened 2 months ago

adcascone commented 2 months ago

Hello,

I noticed that the documentation for the gentlg function states that the options for the 'tlf' argument are:

(optional) String, representing the output choice. Choices are "Table" "Listing" "Figure". Abbreviations are allowed eg "T" for Table. Strings can be either upper- or lowercase. Vectorized. (Default = "Table")

However, the source code for gentlg_single, which is called by gentlg, has an error message indicating that 'Graph' is indeed an acceptable input: https://github.com/cran/tidytlg/blob/22bcb106ff9e3a4c35557cd404c5190c4eb36dbe/R/gentlg_single.R#L438

Would it be possible to please update the documentation to reflect the appropriate options for the 'tlf' argument?

Thank you! Arianna C.