Skip to content

Feature and Improvement Ideas for openxlsx #1

@adamborondy

Description

@adamborondy
  1. 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.
  2. (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.
  3. 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:
    addStyle(wb, "sheet1", style = style1, 
             cols = 1:ncol(dataframe), rows = 2:(nrow(dataframe)+1), 
             gridExpand = TRUE)
    
    One could implement some selector functions to customise a specific column/row or the entire body.

Further notes:

  1. I think the options("openxlsx.numFmt" = ___) setting mentioned in the vignette does not affect anything.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions