diff --git a/dev/pkgdown.yml b/dev/pkgdown.yml index 24a7575a4..e9298cb04 100644 --- a/dev/pkgdown.yml +++ b/dev/pkgdown.yml @@ -8,7 +8,7 @@ articles: openxlsx2_style_manual: openxlsx2_style_manual.html openxlsx2: openxlsx2.html Update-from-openxlsx: Update-from-openxlsx.html -last_built: 2024-05-20T11:32Z +last_built: 2024-05-20T11:53Z urls: reference: https://janmarvin.github.io/openxlsx2/reference article: https://janmarvin.github.io/openxlsx2/articles diff --git a/dev/reference/index.html b/dev/reference/index.html index 314692737..7b1c74ae2 100644 --- a/dev/reference/index.html +++ b/dev/reference/index.html @@ -210,7 +210,7 @@
wb_remove_slicer()
wb_add_timeline()
+ wb_add_slicer()
wb_remove_slicer()
wb_add_timeline()
wb_remove_timeline()
remove_timeline()
add pivot table
wbWorkbook$remove_timeline(sheet = current_sheet())
add_formula()
Add formula
wbWorkbook$add_formula(
sheet = current_sheet(),
x,
@@ -1210,7 +1231,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object
add_style()
add style
style
style
The wbWorkbook
object
to_df()
to_df
sheet
Either sheet name or index. When missing the first sheet in the workbook is selected.
a data frame
load()
load workbook
file
file
The wbWorkbook
object invisibly
save()
Save the workbook
file
The path to save the workbook to
The wbWorkbook
object invisibly
open()
open wbWorkbook in Excel.
interactive
If FALSE
will throw a warning and not open the path.
This can be manually set to TRUE
, otherwise when NA
(default) uses
@@ -1496,14 +1517,14 @@
The wbWorkbook
, invisibly
buildTable()
Build table
wbWorkbook$buildTable(
sheet = current_sheet(),
colNames,
@@ -1522,7 +1543,7 @@ Usage
sheet
The name of the sheet
The wbWorksheet
object, invisibly
update_table()
update a data_table
sheet
The name of the sheet
The wbWorksheet
object, invisibly
copy_cells()
copy cells around in a workbook
wbWorkbook$copy_cells(
sheet = current_sheet(),
dims = "A1",
@@ -1626,7 +1647,7 @@ Usage
sheet
The name of the sheet
The wbWorksheet
object, invisibly
set_base_font()
Set the base font
wbWorkbook$set_base_font(
font_size = 11,
font_color = wb_color(theme = "1"),
@@ -1687,7 +1708,7 @@ Usage
font_size
fontSize
The wbWorkbook
object
get_base_colors()
Get the base color
xml
xml
get_base_colours()
Get the base colour
xml
xml
set_base_colors()
Set the base color
theme
theme
The wbWorkbook
object
set_base_colours()
Set the base colour
theme
theme
The wbWorkbook
object
set_bookview()
Set the book views
wbWorkbook$set_bookview(
active_tab = NULL,
auto_filter_date_grouping = NULL,
@@ -1822,7 +1843,7 @@ Usage
active_tab
activeTab
The wbWorkbook
object
get_sheet_names()
Get sheet names
escape
Logical if the xml special characters are escaped
A named
character
vector of sheet names in their order. The
names represent the original value of the worksheet prior to any
character substitutions.
set_sheet_names()
Sets a sheet name
old
Old sheet name
The wbWorkbook
object, invisibly
set_row_heights()
Sets a row height for a sheet
wbWorkbook$set_row_heights(
sheet = current_sheet(),
rows,
@@ -1945,7 +1966,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object, invisibly
remove_row_heights()
Removes a row height for a sheet
sheet
The name of the sheet
The wbWorkbook
object, invisibly
createCols()
creates column object for worksheet
sheet
The name of the sheet
group_cols()
Group cols
wbWorkbook$group_cols(
sheet = current_sheet(),
cols,
@@ -2034,7 +2055,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object, invisibly
ungroup_cols()
ungroup cols
sheet
The name of the sheet
The wbWorkbook
object
remove_col_widths()
Remove row heights from a worksheet
sheet
A name or index of a worksheet
The wbWorkbook
object, invisibly
set_col_widths()
Set column widths
wbWorkbook$set_col_widths(
sheet = current_sheet(),
cols,
@@ -2119,7 +2140,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object, invisibly
group_rows()
Group rows
wbWorkbook$group_rows(
sheet = current_sheet(),
rows,
@@ -2157,7 +2178,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object, invisibly
ungroup_rows()
ungroup rows
sheet
The name of the sheet
The wbWorkbook
object
remove_worksheet()
Remove a worksheet
sheet
The worksheet to delete
The wbWorkbook
object, invisibly
add_data_validation()
Adds data validation
wbWorkbook$add_data_validation(
sheet = current_sheet(),
dims = "A1",
@@ -2248,7 +2269,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object
merge_cells()
Set cell merging for a sheet
wbWorkbook$merge_cells(
sheet = current_sheet(),
dims = NULL,
@@ -2325,7 +2346,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object, invisibly
unmerge_cells()
Removes cell merging for a sheet
sheet
The name of the sheet
The wbWorkbook
object, invisibly
freeze_pane()
Set freeze panes for a sheet
wbWorkbook$freeze_pane(
sheet = current_sheet(),
first_active_row = NULL,
@@ -2392,7 +2413,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object, invisibly
add_comment()
Add comment
sheet
The name of the sheet
The wbWorkbook
object
get_comment()
Get comments
sheet
sheet
A data frame containing comments
remove_comment()
Remove comment
sheet
The name of the sheet
The wbWorkbook
object
add_thread()
add threaded comment to worksheet
wbWorkbook$add_thread(
sheet = current_sheet(),
dims = "A1",
@@ -2523,7 +2544,7 @@ Usage
sheet
The name of the sheet
get_thread()
Get threads
sheet
sheet
A data frame containing threads
add_conditional_formatting()
Add conditional formatting
wbWorkbook$add_conditional_formatting(
sheet = current_sheet(),
dims = NULL,
@@ -2595,7 +2616,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object
remove_conditional_formatting()
Remove conditional formatting
wbWorkbook$remove_conditional_formatting(
sheet = current_sheet(),
dims = NULL,
@@ -2644,7 +2665,7 @@ Usage
sheet
sheet
The wbWorkbook
object
add_image()
Insert an image into a sheet
wbWorkbook$add_image(
sheet = current_sheet(),
dims = "A1",
@@ -2687,7 +2708,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object, invisibly
add_plot()
Add plot. A wrapper for add_image()
wbWorkbook$add_plot(
sheet = current_sheet(),
dims = "A1",
@@ -2750,7 +2771,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object
add_drawing()
Add xml drawing
wbWorkbook$add_drawing(
sheet = current_sheet(),
dims = "A1",
@@ -2809,7 +2830,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object
add_chart_xml()
Add xml chart
wbWorkbook$add_chart_xml(
sheet = current_sheet(),
dims = NULL,
@@ -2852,7 +2873,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object
add_mschart()
Add mschart chart to the workbook
wbWorkbook$add_mschart(
sheet = current_sheet(),
dims = NULL,
@@ -2895,7 +2916,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object
add_form_control()
Add form control to workbook
wbWorkbook$add_form_control(
sheet = current_sheet(),
dims = "A1",
@@ -2939,7 +2960,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object, invisibly
print()
Prints the wbWorkbook
object
protect()
Protect a workbook
protect
protect
The wbWorkbook
object, invisibly
protect_worksheet()
protect worksheet
wbWorkbook$protect_worksheet(
sheet = current_sheet(),
protect = TRUE,
@@ -3062,7 +3083,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object
set_properties()
Set a property of a workbook
creator
character vector of creators. Duplicated are ignored.
add_mips()
add mips string
xml
A mips string added to self$custom
get_mips()
get mips string
single_xml
single_xml
set_creators()
Set creator(s)
creators
A character vector of creators to set. Duplicates are ignored.
add_creators()
Add creator(s)
creators
A character vector of creators to add. Duplicates are ignored.
remove_creators()
Remove creator(s)
creators
A character vector of creators to remove. All duplicated are removed.
set_last_modified_by()
Change the last modified by
name
A new value
The wbWorkbook
object, invisibly
set_page_setup()
set_page_setup() this function is intended to supersede page_setup(), but is not yet stable
wbWorkbook$set_page_setup(
sheet = current_sheet(),
black_and_white = NULL,
@@ -3283,7 +3304,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object, invisibly
page_setup()
page_setup()
wbWorkbook$page_setup(
sheet = current_sheet(),
orientation = NULL,
@@ -3437,7 +3458,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object, invisibly
set_header_footer()
Sets headers and footers
wbWorkbook$set_header_footer(
sheet = current_sheet(),
header = NULL,
@@ -3530,7 +3551,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object, invisibly
get_tables()
get tables
sheet
The name of the sheet
The sheet tables. character()
if empty
remove_tables()
remove tables
sheet
The name of the sheet
The wbWorkbook
object
add_filter()
add filters
sheet
The name of the sheet
The wbWorkbook
object
remove_filter()
remove filters
sheet
The name of the sheet
The wbWorkbook
object
set_grid_lines()
grid lines
sheet
The name of the sheet
The wbWorkbook
object
grid_lines()
grid lines
sheet
The name of the sheet
The wbWorkbook
object
add_named_region()
add a named region
wbWorkbook$add_named_region(
sheet = current_sheet(),
dims = "A1",
@@ -3750,7 +3771,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object
get_named_regions()
get named regions in a workbook
tables
Return tables as well?
A data.frame
of named regions
remove_named_region()
remove a named region
sheet
The name of the sheet
The wbWorkbook
object
set_order()
set worksheet order
sheets
sheets
The wbWorkbook
object
set_sheet_visibility()
Set sheet visibility
sheet
The name of the sheet
The wbWorkbook
object
add_page_break()
Add a page break
sheet
The name of the sheet
The wbWorkbook
object
clean_sheet()
clean sheet (remove all values)
wbWorkbook$clean_sheet(
sheet = current_sheet(),
dims = NULL,
@@ -3981,7 +4002,7 @@ Usage
sheet
The name of the sheet
The wbWorksheetObject
, invisibly
add_border()
create borders for cell region
wbWorkbook$add_border(
sheet = current_sheet(),
dims = "A1",
@@ -4037,7 +4058,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
, invisibly
add_fill()
provide simple fill function
wbWorkbook$add_fill(
sheet = current_sheet(),
dims = "A1",
@@ -4082,7 +4103,7 @@ Usage
sheet
The name of the sheet
The wbWorksheetObject
, invisibly
add_font()
provide simple font function
wbWorkbook$add_font(
sheet = current_sheet(),
dims = "A1",
@@ -4153,7 +4174,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
, invisibly
add_numfmt()
provide simple number format function
sheet
The name of the sheet
The wbWorksheetObject
, invisibly
add_cell_style()
provide simple cell style format function
wbWorkbook$add_cell_style(
sheet = current_sheet(),
dims = "A1",
@@ -4298,7 +4319,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
object, invisibly
get_cell_style()
get sheet style
sheet
The name of the sheet
a character vector of cell styles
set_cell_style()
set sheet style
sheet
The name of the sheet
The wbWorksheetObject
, invisibly
set_cell_style_across()
set style across columns and/or rows
wbWorkbook$set_cell_style_across(
sheet = current_sheet(),
style,
@@ -4483,7 +4504,7 @@ Usage
sheet
sheet
The wbWorkbook
object
add_named_style()
set sheet style
wbWorkbook$add_named_style(
sheet = current_sheet(),
dims = "A1",
@@ -4521,7 +4542,7 @@ Usage
sheet
The name of the sheet
The wbWorkbook
, invisibly
add_dxfs_style()
create dxfs style These styles are used with conditional formatting and custom table styles
name
the style name
The wbWorksheetObject
, invisibly
clone_sheet_style()
clone style from one sheet to another
from
the worksheet you are cloning
add_sparklines()
apply sparkline to worksheet
sheet
The name of the sheet
add_ignore_error()
Ignore error on worksheet
wbWorkbook$add_ignore_error(
sheet = current_sheet(),
dims = "A1",
@@ -4694,7 +4715,7 @@ Usage
sheet
The name of the sheet
set_sheetview()
add sheetview
wbWorkbook$set_sheetview(
sheet = current_sheet(),
color_id = NULL,
@@ -4776,7 +4797,7 @@ Usage
sheet
The name of the sheet
The wbWorksheetObject
, invisibly
add_person()
add person to workbook
name
name
get_person()
description get person
name
name
set_active_sheet()
description set active sheet
sheet
The name of the sheet
set_selected()
set selected sheet
sheet
The name of the sheet
clone()
The objects of this class are cloneable with this method.
deep
Whether to make a deep clone.