Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Aug 22, 2023
1 parent a701717 commit 9a22fba
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 23 deletions.
14 changes: 7 additions & 7 deletions R/class-workbook-wrappers.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

#' Create a new Workbook object
#'
#' Create a new Workbook object
#' Initialize a [wbWorkbook] object. You can set workbook properties as well.
#'
#' `theme` can be one of
#' "Atlas", "Badge", "Berlin", "Celestial", "Crop", "Depth", "Droplet",
Expand All @@ -16,7 +16,7 @@
#' @param theme Optional theme identified by string or number.
#' See **Details** for options.
#' @param ... additional arguments
#' @return A [wbWorkbook] object
#' @return A `wbWorkbook` object
#'
#' @export
#' @family workbook wrappers
Expand Down Expand Up @@ -57,8 +57,8 @@ wb_workbook <- function(
#'
#' @param wb A `wbWorkbook` object to write to file
#' @param file A path to save the workbook to
#' @param overwrite If `FALSE`, will not overwrite when `path` exists
#' @param path Deprecated argument previously used for `file`. Please use `file` in new code.
#' @param overwrite If `FALSE`, will not overwrite when `file` already exists.
#' @param path Deprecated argument. Please use `file` in new code.
#'
#' @export
#' @family workbook wrappers
Expand Down Expand Up @@ -89,9 +89,9 @@ wb_save <- function(wb, file = NULL, overwrite = TRUE, path = NULL) {
#' @param wb A Workbook object containing a worksheet.
#' @param sheet The worksheet to write to. Can be the worksheet index or name.
#' @param x Object to be written. For classes supported look at the examples.
#' @param dims Spreadsheet dimensions that will determine `start_col` and `start_row`: "A1", "A1:B2", "A:B"
#' @param start_col A vector specifying the starting column to write to.
#' @param start_row A vector specifying the starting row to write to.
#' @param dims Spreadsheet cell range that will determine `start_col` and `start_row`: "A1", "A1:B2", "A:B"
#' @param start_col A vector specifying the starting column to write `x` to.
#' @param start_row A vector specifying the starting row to write `x` to.
#' @param array A bool if the function written is of type array
#' @param col_names If `TRUE`, column names of `x` are written.
#' @param row_names If `TRUE`, the row names of `x` are written.
Expand Down
6 changes: 6 additions & 0 deletions R/read.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
#' * 2: date
#' * 3: posixt (datetime)
#' * 4: logical
#'
#' `read_xlsx()` will not pick up formulas added to a Workbook object
#' via [wb_add_formula()]. This is because only the formula is written and left
#' to be evaluated when the file is opened in a spreadsheet software.
#' Opening, saving and closing the file with Excel will resolve this.
#'
#' @seealso [wb_get_named_regions()]
#'
#' @param file An xlsx file, [wbWorkbook] object or URL to xlsx file.
Expand Down
6 changes: 3 additions & 3 deletions man/wb_add_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/wb_add_data_table.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/wb_save.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions man/wb_to_df.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/wb_workbook.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/write_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/write_datatable.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9a22fba

Please sign in to comment.