`write2html()` produces an unexpected warning when `title` argument is used
Hello,
I'm working through examples from the write2specific section of the package reference manual (pg. 57-58) and noticed unexpected behavior with the write2html() function.
Specifically, this code produces the following warning:
library(arsenal)
data(mockstudy)
# tableby example
tab1 <- tableby(arm ~ sex + age, data=mockstudy)
write2html(object = tab1, title = "My title", file = "~/test.html")
This only comes up when the title argument is employed in the write2html() function. The .html output file has the title I specified in the function call, though, as shown in this screenshot:
Based on my knowledge, I believe this may be a warning thrown by the rmarkdown function used internally. Is that true? Would it make sense to suppress this warning altogether if the title specified in write2html() is being applied anyway?
I am using arsenal version 3.6.3, for reference.
Thank you for the guidance and all your work on this useful package!
Arianna C.