Skip to content

Commit

Permalink
Unify function titles
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Aug 22, 2023
1 parent 9a22fba commit 22d398d
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 38 deletions.
36 changes: 18 additions & 18 deletions R/class-workbook-wrappers.R
Original file line number Diff line number Diff line change
Expand Up @@ -419,13 +419,13 @@ wb_add_formula <- function(
)
}

#' Update a data table
#' Update a data table position in a worksheet
#'
#' Update the position of a data table, possibly written using [wb_add_data_table()]
#' @param wb workbook
#' @param sheet a worksheet
#' @param dims cell range used for new data table.
#' @param tabname a tablename
#' @param wb A workbook
#' @param sheet A worksheet
#' @param dims Cell range used for new data table.
#' @param tabname A table name
#'
#' @details
#' Be aware that this function does not alter any filter.
Expand Down Expand Up @@ -722,7 +722,7 @@ wb_add_worksheet <- function(
}


#' Clone a worksheet in a workbook
#' Create copies of a worksheet within a workbook
#'
#' @description
#' Create a copy of a worksheet in the same `wbWorkbook` object.
Expand Down Expand Up @@ -1325,7 +1325,7 @@ wb_set_header_footer <- function(



#' Set page margins, orientation and print scaling
#' Set page margins, orientation and print scaling of a worksheet
#'
#' Set page margins, orientation and print scaling.
#' @param wb A workbook object
Expand Down Expand Up @@ -1611,9 +1611,9 @@ wb_protect <- function(

# grid lines --------------------------------------------------------------

#' Set worksheet gridlines to show or hide.
#' Modify grid lines visibility in a worksheet
#'
#' Set worksheet gridlines to show or hide.
#' Set worksheet grid lines to show or hide.
#' You can also add / remove grid lines when creating a worksheeet with
#' [`wb_add_worksheet(grid_lines = FALSE)`][wb_add_worksheet()]
#'
Expand Down Expand Up @@ -1962,7 +1962,7 @@ wb_add_data_validation <- function(

# visibility --------------------------------------------------------------

#' Get/set worksheet visible state
#' Get/set worksheet visible state in a workbook
#'
#' Get and set worksheet visible state. This allows to hide worksheets from the workbook.
#'
Expand Down Expand Up @@ -2089,13 +2089,13 @@ wb_remove_tables <- function(wb, sheet = current_sheet(), table, remove_data = T

# grouping ----------------------------------------------------------------

#' Group Rows and Columns
#' Group rows and columns in a worksheet
#'
#' Group a selection of rows or cols
#'
#' @details If row was previously hidden, it will now be shown
#' @details If row was previously hidden, it will now be shown.
#'
#' @param wb A [wbWorkbook] object
#' @param wb A `wbWorkbook` object
#' @param sheet A name or index of a worksheet
#' @param rows,cols Indices of rows and columns to group
#' @param collapsed If `TRUE` the grouped columns are collapsed
Expand Down Expand Up @@ -2192,7 +2192,7 @@ wb_ungroup_rows <- function(wb, sheet = current_sheet(), rows) {

# creators ----------------------------------------------------------------

#' Workbook creators
#' Modify creators of a workbook
#'
#' Modify and get workbook creators
#'
Expand Down Expand Up @@ -2289,7 +2289,7 @@ wb_get_sheet_names <- function(wb, escape = FALSE) {

# others? -----------------------------------------------------------------

#' Add another author to the meta data of the file.
#' Modify author in the metadata of a workbook
#'
#' Just a wrapper of `wb$set_last_modified_by()`
#'
Expand Down Expand Up @@ -2362,7 +2362,7 @@ wb_add_image <- function(
}


#' Add a chart XML to a workbook
#' Add a chart XML to a worksheet
#'
#' @param wb a workbook
#' @param sheet the sheet on which the graph will appear
Expand Down Expand Up @@ -3272,13 +3272,13 @@ wb_add_conditional_formatting <- function(
)
}

#' clone sheets style
#' Apply styling from a sheet to another within a workbook
#'
#' This function can be used to apply styling from a cell range, and apply it
#' to another cell range.
#' @param wb A workbook
#' @param from sheet we select the style from
#' @param to sheet we apply the style from
#' @param to sheet to apply the style to
#' @export
wb_clone_sheet_style <- function(wb, from = current_sheet(), to) {
assert_workbook(wb)
Expand Down
2 changes: 1 addition & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ reference:
- wb_set_last_modified_by
- wb_creators
- wb_order
- wb_sheet_names
- wb_remove_worksheet
- wb_active_sheet
- wb_sheet_visibility
- wb_set_bookview
- wb_protect
- wb_sheet_names
- wb_get_tables
- wb_remove_tables
- wb_get_named_regions
Expand Down
4 changes: 2 additions & 2 deletions man/wb_add_chart_xml.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_clone_sheet_style.Rd

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

2 changes: 1 addition & 1 deletion man/wb_clone_worksheet.Rd

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

2 changes: 1 addition & 1 deletion man/wb_creators.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_grouping.Rd

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

2 changes: 1 addition & 1 deletion man/wb_page_setup.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_set_grid_lines.Rd

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

2 changes: 1 addition & 1 deletion man/wb_set_last_modified_by.Rd

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

2 changes: 1 addition & 1 deletion man/wb_sheet_visibility.Rd

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

10 changes: 5 additions & 5 deletions man/wb_update_table.Rd

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

0 comments on commit 22d398d

Please sign in to comment.