Depending on how easily it could be implemented, it would be useful to set the currency type for the worksheets in some way (e.g. through an option() setting). This way columns with "accounting" or "currency" class could be customised to Euro instead of Dollars for example.
(If included in the course) it would be useful to implement insertPlot() in a way that is takes plot objects as input and not the image from the device. Especially, because the current implementation does not work with our Rmd notebooks.
addStyle() can be used to customise the body of a spreadsheet (e.g. set borders). However, the cols and rows definition for this step looks quite complicated. Since the first row contains the table header we need to select the body like this:
One could implement some selector functions to customise a specific column/row or the entire body.
Further notes:
I think the options("openxlsx.numFmt" = ___) setting mentioned in the vignette does not affect anything.
While the vignette applies class(df$Cash) <- "currency", some function documentations apply class(df$Cash) <- c(class(df$Cash), "currency"). This could be made more consistent.
cols
androws
definition for this step looks quite complicated. Since the first row contains the table header we need to select the body like this:One could implement some selector functions to customise a specific column/row or the entire body.
Further notes:
options("openxlsx.numFmt" = ___)
setting mentioned in the vignette does not affect anything.class(df$Cash) <- "currency"
, some function documentations applyclass(df$Cash) <- c(class(df$Cash), "currency"
). This could be made more consistent.