toxlsx(iris, path=tempdir(), title = "Ma super table")
# Erreur : title must be of class list
Desired result
This should produce an Excel with "Ma super table" as a title in cell A1.
More generally, I think toxlsx should accept length 1 character vectors as arguments for tosheet, footnote1, footnote2, footnote3 when object is a single data.frame object, and not a list.
And after all, why not use character vectors all the way? If the first argument is a list, you can provide a character vector of same length to tosheet, footnote1, etc.
The following code produces an error
Desired result
This should produce an Excel with "Ma super table" as a title in cell A1.
More generally, I think
toxlsx
should accept length 1 character vectors as arguments fortosheet
,footnote1
,footnote2
,footnote3
whenobject
is a singledata.frame
object, and not a list.