} ...}
\item{text_bold}{bold}
diff --git a/man/create_tablestyle.Rd b/man/create_tablestyle.Rd
index f5b2beb11..585c76af5 100644
--- a/man/create_tablestyle.Rd
+++ b/man/create_tablestyle.Rd
@@ -6,49 +6,52 @@
\usage{
create_tablestyle(
name,
- wholeTable = NULL,
- headerRow = NULL,
- totalRow = NULL,
- firstColumn = NULL,
- lastColumn = NULL,
- firstRowStripe = NULL,
- secondRowStripe = NULL,
- firstColumnStripe = NULL,
- secondColumnStripe = NULL,
- firstHeaderCell = NULL,
- lastHeaderCell = NULL,
- firstTotalCell = NULL,
- lastTotalCell = NULL
+ whole_table = NULL,
+ header_row = NULL,
+ total_row = NULL,
+ first_column = NULL,
+ last_column = NULL,
+ first_row_stripe = NULL,
+ second_row_stripe = NULL,
+ first_column_stripe = NULL,
+ second_column_stripe = NULL,
+ first_header_cell = NULL,
+ last_header_cell = NULL,
+ first_total_cell = NULL,
+ last_total_cell = NULL,
+ ...
)
}
\arguments{
\item{name}{name}
-\item{wholeTable}{wholeTable}
+\item{whole_table}{wholeTable}
-\item{headerRow}{headerRow}
+\item{header_row}{headerRow}
-\item{totalRow}{totalRow}
+\item{total_row}{totalRow}
-\item{firstColumn}{firstColumn}
+\item{first_column}{firstColumn}
-\item{lastColumn}{lastColumn}
+\item{last_column}{lastColumn}
-\item{firstRowStripe}{firstRowStripe}
+\item{first_row_stripe}{firstRowStripe}
-\item{secondRowStripe}{secondRowStripe}
+\item{second_row_stripe}{secondRowStripe}
-\item{firstColumnStripe}{firstColumnStripe}
+\item{first_column_stripe}{firstColumnStripe}
-\item{secondColumnStripe}{secondColumnStripe}
+\item{second_column_stripe}{secondColumnStripe}
-\item{firstHeaderCell}{firstHeaderCell}
+\item{first_header_cell}{firstHeaderCell}
-\item{lastHeaderCell}{lastHeaderCell}
+\item{last_header_cell}{lastHeaderCell}
-\item{firstTotalCell}{firstTotalCell}
+\item{first_total_cell}{firstTotalCell}
-\item{lastTotalCell}{lastTotalCell}
+\item{last_total_cell}{lastTotalCell}
+
+\item{...}{additional arguments}
}
\description{
create tableStyle
diff --git a/man/get_cell_refs.Rd b/man/get_cell_refs.Rd
deleted file mode 100644
index 39784f8f7..000000000
--- a/man/get_cell_refs.Rd
+++ /dev/null
@@ -1,23 +0,0 @@
-% Generated by roxygen2: do not edit by hand
-% Please edit documentation in R/converters.R
-\name{get_cell_refs}
-\alias{get_cell_refs}
-\title{Return excel cell coordinates from (x,y) coordinates}
-\usage{
-get_cell_refs(cellCoords)
-}
-\arguments{
-\item{cellCoords}{A data.frame with two columns coordinate pairs.}
-}
-\value{
-Excel alphanumeric cell reference
-}
-\description{
-Return excel cell coordinates from (x,y) coordinates
-}
-\examples{
-get_cell_refs(data.frame(1, 2))
-# "B1"
-get_cell_refs(data.frame(1:3, 2:4))
-# "B1" "C2" "D3"
-}
diff --git a/man/get_date_origin.Rd b/man/get_date_origin.Rd
deleted file mode 100644
index b840857f8..000000000
--- a/man/get_date_origin.Rd
+++ /dev/null
@@ -1,40 +0,0 @@
-% Generated by roxygen2: do not edit by hand
-% Please edit documentation in R/dates.R
-\name{get_date_origin}
-\alias{get_date_origin}
-\title{Get the date origin an xlsx file is using}
-\usage{
-get_date_origin(xlsxFile, origin = FALSE)
-}
-\arguments{
-\item{xlsxFile}{An xlsx or xlsm file or a wbWorkbook object.}
-
-\item{origin}{return the origin instead of the character string.}
-}
-\value{
-One of "1900-01-01" or "1904-01-01".
-}
-\description{
-Return the date origin used internally by an xlsx or xlsm file
-}
-\details{
-Excel stores dates as the number of days from either 1904-01-01 or 1900-01-01. This function
-checks the date origin being used in an Excel file and returns is so it can be used in \code{\link[=convert_date]{convert_date()}}
-}
-\examples{
-
-## create a file with some dates
-temp <- temp_xlsx()
-write_xlsx(as.Date("2015-01-10") - (0:4), file = temp)
-m <- read_xlsx(temp)
-
-## convert to dates
-do <- get_date_origin(system.file("extdata", "openxlsx2_example.xlsx", package = "openxlsx2"))
-convert_date(m[[1]], do)
-
-get_date_origin(wb_workbook())
-get_date_origin(wb_workbook(), origin = TRUE)
-}
-\seealso{
-\code{\link[=convert_date]{convert_date()}}
-}
diff --git a/man/guess_col_type.Rd b/man/guess_col_type.Rd
deleted file mode 100644
index 5e56c2d25..000000000
--- a/man/guess_col_type.Rd
+++ /dev/null
@@ -1,16 +0,0 @@
-% Generated by roxygen2: do not edit by hand
-% Please edit documentation in R/wb_functions.R
-\name{guess_col_type}
-\alias{guess_col_type}
-\title{function to estimate the column type.
-0 = character, 1 = numeric, 2 = date.}
-\usage{
-guess_col_type(tt)
-}
-\arguments{
-\item{tt}{dataframe produced by wb_to_df()}
-}
-\description{
-function to estimate the column type.
-0 = character, 1 = numeric, 2 = date.
-}
diff --git a/man/named_region.Rd b/man/named_region.Rd
index c08b9e688..b08090197 100644
--- a/man/named_region.Rd
+++ b/man/named_region.Rd
@@ -12,24 +12,23 @@ wb_add_named_region(
wb,
sheet = current_sheet(),
dims = "A1",
- cols,
- rows,
name,
- localSheet = FALSE,
+ local_sheet = FALSE,
overwrite = FALSE,
comment = NULL,
- customMenu = NULL,
+ custom_menu = NULL,
description = NULL,
is_function = NULL,
- functionGroupId = NULL,
+ function_group_id = NULL,
help = NULL,
hidden = NULL,
- localName = NULL,
- publishToServer = NULL,
- statusBar = NULL,
- vbProcedure = NULL,
- workbookParameter = NULL,
- xml = NULL
+ local_name = NULL,
+ publish_to_server = NULL,
+ status_bar = NULL,
+ vb_procedure = NULL,
+ workbook_parameter = NULL,
+ xml = NULL,
+ ...
)
wb_remove_named_region(wb, sheet = current_sheet(), name = NULL)
@@ -43,42 +42,40 @@ wb_get_named_regions(x, tables = FALSE)
\item{dims}{Worksheet dimension, single cell ("A1") or cell range ("A1:D4")}
-\item{cols}{Numeric vector specifying columns to include in region}
-
-\item{rows}{Numeric vector specifying rows to include in region}
-
\item{name}{Name for region. A character vector of length 1. Note region names musts be case-insensitive unique.}
-\item{localSheet}{If \code{TRUE} the named region will be local for this sheet}
+\item{local_sheet}{If \code{TRUE} the named region will be local for this sheet}
\item{overwrite}{Boolean. Overwrite if exists? Default to FALSE}
\item{comment}{description text for named region}
-\item{customMenu}{customMenu (unknown xml feature)}
+\item{custom_menu}{customMenu (unknown xml feature)}
\item{description}{description (unknown xml feature)}
\item{is_function}{function (unknown xml feature)}
-\item{functionGroupId}{function group id (unknown xml feature)}
+\item{function_group_id}{function group id (unknown xml feature)}
\item{help}{help (unknown xml feature)}
\item{hidden}{hidden if the named region should be hidden}
-\item{localName}{localName (unknown xml feature)}
+\item{local_name}{localName (unknown xml feature)}
-\item{publishToServer}{publish to server (unknown xml feature)}
+\item{publish_to_server}{publish to server (unknown xml feature)}
-\item{statusBar}{status bar (unknown xml feature)}
+\item{status_bar}{status bar (unknown xml feature)}
-\item{vbProcedure}{wbProcedure (unknown xml feature)}
+\item{vb_procedure}{wbProcedure (unknown xml feature)}
-\item{workbookParameter}{workbookParameter (unknown xml feature)}
+\item{workbook_parameter}{workbookParameter (unknown xml feature)}
\item{xml}{xml (unknown xml feature)}
+\item{...}{additional arguments}
+
\item{x}{An xlsx file or Workbook object}
\item{tables}{add tables too}
@@ -102,8 +99,10 @@ wb$add_data(sheet = 1, x = iris, startCol = 1, startRow = 1)
wb$add_named_region(
sheet = 1,
name = "iris",
- rows = seq_len(nrow(iris) + 1),
- cols = seq_along(iris)
+ dims = rowcol_to_dims(
+ row = seq_len(nrow(iris) + 1),
+ col = seq_along(iris)
+ )
)
@@ -127,37 +126,4 @@ head(df)
df <- read_xlsx(out_file, namedRegion = "iris2")
head(df)
-## create named regions
-wb <- wb_workbook()
-wb$add_worksheet("Sheet 1")
-
-## specify region
-wb$add_data(sheet = 1, x = iris, startCol = 1, startRow = 1)
-wb$add_named_region(
- sheet = 1,
- name = "iris",
- rows = seq_len(nrow(iris) + 1),
- cols = seq_along(iris)
-)
-
-
-## using write_data 'name' argument to create a named region
-wb$add_data(sheet = 1, x = iris, name = "iris2", startCol = 10)
-
-out_file <- temp_xlsx()
-wb$save(out_file, overwrite = TRUE)
-
-## see named regions
-wb_get_named_regions(wb) ## From Workbook object
-wb_get_named_regions(out_file) ## From xlsx file
-
-## read named regions
-df <- read_xlsx(wb, namedRegion = "iris")
-head(df)
-
-df <- read_xlsx(out_file, namedRegion = "iris2")
-head(df)
-}
-\seealso{
-\code{\link[=wb_add_named_region]{wb_add_named_region()}} \code{\link[=wb_remove_named_region]{wb_remove_named_region()}}
}
diff --git a/man/read_xlsx.Rd b/man/read_xlsx.Rd
index a857ec639..1a3bc02ea 100644
--- a/man/read_xlsx.Rd
+++ b/man/read_xlsx.Rd
@@ -5,43 +5,43 @@
\title{Read from an Excel file or Workbook object}
\usage{
read_xlsx(
- xlsxFile,
+ xlsx_file,
sheet,
- startRow = 1,
- startCol = NULL,
- rowNames = FALSE,
- colNames = TRUE,
- skipEmptyRows = FALSE,
- skipEmptyCols = FALSE,
+ start_row = 1,
+ start_col = NULL,
+ row_names = FALSE,
+ col_names = TRUE,
+ skip_empty_rows = FALSE,
+ skip_empty_cols = FALSE,
rows = NULL,
cols = NULL,
- detectDates = TRUE,
- namedRegion,
+ detect_dates = TRUE,
+ named_region,
na.strings = "#N/A",
na.numbers = NA,
check.names = FALSE,
sep.names = ".",
- fillMergedCells = FALSE,
+ fill_merged_cells = FALSE,
...
)
}
\arguments{
-\item{xlsxFile}{An xlsx file, Workbook object or URL to xlsx file.}
+\item{xlsx_file}{An xlsx file, Workbook object or URL to xlsx file.}
\item{sheet}{The name or index of the sheet to read data from.}
-\item{startRow}{first row to begin looking for data.}
+\item{start_row}{first row to begin looking for data.}
-\item{startCol}{first column to begin looking for data.}
+\item{start_col}{first column to begin looking for data.}
-\item{rowNames}{If \code{TRUE}, first column of data will be used as row names.}
+\item{row_names}{If \code{TRUE}, first column of data will be used as row names.}
-\item{colNames}{If \code{TRUE}, the first row of data will be used as column names.}
+\item{col_names}{If \code{TRUE}, the first row of data will be used as column names.}
-\item{skipEmptyRows}{If \code{TRUE}, empty rows are skipped else empty rows after the first row containing data
+\item{skip_empty_rows}{If \code{TRUE}, empty rows are skipped else empty rows after the first row containing data
will return a row of NAs.}
-\item{skipEmptyCols}{If \code{TRUE}, empty columns are skipped.}
+\item{skip_empty_cols}{If \code{TRUE}, empty columns are skipped.}
\item{rows}{A numeric vector specifying which rows in the Excel file to read.
If NULL, all rows are read.}
@@ -49,9 +49,9 @@ If NULL, all rows are read.}
\item{cols}{A numeric vector specifying which columns in the Excel file to read.
If NULL, all columns are read.}
-\item{detectDates}{If \code{TRUE}, attempt to recognize dates and perform conversion.}
+\item{detect_dates}{If \code{TRUE}, attempt to recognize dates and perform conversion.}
-\item{namedRegion}{A named region in the Workbook. If not NULL startRow, rows and cols parameters are ignored.}
+\item{named_region}{A named region in the Workbook. If not NULL startRow, rows and cols parameters are ignored.}
\item{na.strings}{A character vector of strings which are to be interpreted as NA. Blank cells will be returned as NA.}
@@ -62,7 +62,7 @@ are checked to ensure that they are syntactically valid variable names}
\item{sep.names}{(unimplemented) One character which substitutes blanks in column names. By default, "."}
-\item{fillMergedCells}{If TRUE, the value in a merged cell is given to all cells within the merge.}
+\item{fill_merged_cells}{If TRUE, the value in a merged cell is given to all cells within the merge.}
\item{...}{additional arguments passed to \code{wb_to_df()}}
}
diff --git a/man/style_mgr.Rd b/man/style_mgr.Rd
deleted file mode 100644
index 796345f62..000000000
--- a/man/style_mgr.Rd
+++ /dev/null
@@ -1,637 +0,0 @@
-% Generated by roxygen2: do not edit by hand
-% Please edit documentation in R/class-style_mgr.R
-\name{style_mgr}
-\alias{style_mgr}
-\title{style manager}
-\description{
-style manager
-
-style manager
-}
-\examples{
-xlsxFile <- system.file("extdata", "oxlsx2_sheet.xlsx", package = "openxlsx2")
-wb <- wb_load(xlsxFile)
-
-# ## start style mgr
-# style <- style_mgr$new(wb)
-# style$initialize(wb)
-
-# wb$styles_mgr$get_numfmt() |> print()
-# wb$styles_mgr$next_numfmt_id() |> print()
-# wb$styles_mgr$get_numfmt_id("numFmt-166")
-
-# create new number format
-new_numfmt <- create_numfmt(numFmtId = wb$styles_mgr$next_numfmt_id(), formatCode = "#,#")
-
-# add it via stylemgr
-wb$styles_mgr$add(new_numfmt, "test")
-
-## get numfmts (invisible)
-# z <- wb$styles_mgr$get_numfmt()
-# z
-wb$styles_mgr$styles$numFmts
-
-## create and add huge font
-new_huge_font <- create_font(sz = "20", name = "Arial", b = "1",
- color = wb_color(hex = "FFFFFFFF"))
-wb$styles_mgr$add(new_huge_font, "arial_huge")
-
-## create another font
-new_font <- create_font(name = "Arial")
-wb$styles_mgr$add(new_font, "arial")
-
-## create and add new fill
-new_fill <- create_fill(patternType = "solid", fgColor = wb_color(hex = "FF00224B"))
-wb$styles_mgr$add(new_fill, "blue")
-
-# create new style with numfmt enabled
-head_xf <- create_cell_style(
- horizontal = "center",
- textRotation = "45",
- numFmtId = "0",
- fontId = wb$styles_mgr$get_font_id("arial_huge"),
- fillId = wb$styles_mgr$get_fill_id("blue")
-)
-
-new_xf <- create_cell_style(
- numFmtId = wb$styles_mgr$get_numfmt_id("test"),
- fontId = wb$styles_mgr$get_font_id("arial")
-)
-
-## add new styles
-wb$styles_mgr$add(head_xf, "head_xf")
-wb$styles_mgr$add(new_xf, "new_xf")
-
-## get cell style ids (invisible)
-# z <- wb$styles_mgr$get_xf()
-
-## get cell style id
-# wb$styles_mgr$get_xf_id("new_xf")
-
- ## assign styles to cells
-wb$set_cell_style("SUM", "B3:I3", wb$styles_mgr$get_xf_id("head_xf"))
-wb$set_cell_style("SUM", "C7:C16", wb$styles_mgr$get_xf_id("new_xf"))
-# wb_open(wb)
-
-}
-\section{Public fields}{
-\if{html}{\out{}}
-\describe{
-\item{\code{numfmt}}{numfmt-ids}
-
-\item{\code{font}}{font-ids}
-
-\item{\code{fill}}{fill-ids}
-
-\item{\code{border}}{border-ids}
-
-\item{\code{xf}}{xf-ids}
-
-\item{\code{cellStyle}}{cellStyle-ids}
-
-\item{\code{cellStyleXf}}{cellStyleXf-ids}
-
-\item{\code{dxf}}{dxf-ids}
-
-\item{\code{tableStyle}}{tableStyle-ids}
-
-\item{\code{defaultTableStyle}}{defaultTableStyle}
-
-\item{\code{defaultPivotStyle}}{defaultPivotStyle}
-
-\item{\code{styles}}{styles as xml}
-}
-\if{html}{\out{
}}
-}
-\section{Methods}{
-\subsection{Public methods}{
-\itemize{
-\item \href{#method-wbStylesMgr-new}{\code{style_mgr$new()}}
-\item \href{#method-wbStylesMgr-get_numfmt}{\code{style_mgr$get_numfmt()}}
-\item \href{#method-wbStylesMgr-get_font}{\code{style_mgr$get_font()}}
-\item \href{#method-wbStylesMgr-get_fill}{\code{style_mgr$get_fill()}}
-\item \href{#method-wbStylesMgr-get_border}{\code{style_mgr$get_border()}}
-\item \href{#method-wbStylesMgr-get_xf}{\code{style_mgr$get_xf()}}
-\item \href{#method-wbStylesMgr-get_cellStyle}{\code{style_mgr$get_cellStyle()}}
-\item \href{#method-wbStylesMgr-get_cellStyleXf}{\code{style_mgr$get_cellStyleXf()}}
-\item \href{#method-wbStylesMgr-get_dxf}{\code{style_mgr$get_dxf()}}
-\item \href{#method-wbStylesMgr-get_numfmt_id}{\code{style_mgr$get_numfmt_id()}}
-\item \href{#method-wbStylesMgr-get_font_id}{\code{style_mgr$get_font_id()}}
-\item \href{#method-wbStylesMgr-get_fill_id}{\code{style_mgr$get_fill_id()}}
-\item \href{#method-wbStylesMgr-get_border_id}{\code{style_mgr$get_border_id()}}
-\item \href{#method-wbStylesMgr-get_xf_id}{\code{style_mgr$get_xf_id()}}
-\item \href{#method-wbStylesMgr-get_cellStyle_id}{\code{style_mgr$get_cellStyle_id()}}
-\item \href{#method-wbStylesMgr-get_cellStyleXf_id}{\code{style_mgr$get_cellStyleXf_id()}}
-\item \href{#method-wbStylesMgr-get_dxf_id}{\code{style_mgr$get_dxf_id()}}
-\item \href{#method-wbStylesMgr-get_tableStyle_id}{\code{style_mgr$get_tableStyle_id()}}
-\item \href{#method-wbStylesMgr-next_numfmt_id}{\code{style_mgr$next_numfmt_id()}}
-\item \href{#method-wbStylesMgr-next_font_id}{\code{style_mgr$next_font_id()}}
-\item \href{#method-wbStylesMgr-next_fill_id}{\code{style_mgr$next_fill_id()}}
-\item \href{#method-wbStylesMgr-next_border_id}{\code{style_mgr$next_border_id()}}
-\item \href{#method-wbStylesMgr-next_xf_id}{\code{style_mgr$next_xf_id()}}
-\item \href{#method-wbStylesMgr-next_cellstyle_id}{\code{style_mgr$next_cellstyle_id()}}
-\item \href{#method-wbStylesMgr-next_cellstylexf_id}{\code{style_mgr$next_cellstylexf_id()}}
-\item \href{#method-wbStylesMgr-next_dxf_id}{\code{style_mgr$next_dxf_id()}}
-\item \href{#method-wbStylesMgr-next_tableStyle_id}{\code{style_mgr$next_tableStyle_id()}}
-\item \href{#method-wbStylesMgr-getstyle_ids}{\code{style_mgr$getstyle_ids()}}
-\item \href{#method-wbStylesMgr-add}{\code{style_mgr$add()}}
-\item \href{#method-wbStylesMgr-init_named_style}{\code{style_mgr$init_named_style()}}
-\item \href{#method-wbStylesMgr-clone}{\code{style_mgr$clone()}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-new}{}}}
-\subsection{Method \code{new()}}{
-Creates a new \code{wbStylesMgr} object
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$new(
- numfmt = NA,
- font = NA,
- fill = NA,
- border = NA,
- xf = NA,
- cellStyle = NA,
- cellStyleXf = NA,
- dxf = NA,
- styles = NA
-)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{numfmt}}{numfmt}
-
-\item{\code{font}}{font}
-
-\item{\code{fill}}{fill}
-
-\item{\code{border}}{border}
-
-\item{\code{xf}}{xf}
-
-\item{\code{cellStyle}}{cellStyles}
-
-\item{\code{cellStyleXf}}{cellStylesXf}
-
-\item{\code{dxf}}{dxf}
-
-\item{\code{styles}}{styles}
-}
-\if{html}{\out{
}}
-}
-\subsection{Returns}{
-a \code{wbStylesMgr} object
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_numfmt}{}}}
-\subsection{Method \code{get_numfmt()}}{
-get numfmt ids
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_numfmt()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_font}{}}}
-\subsection{Method \code{get_font()}}{
-get font ids
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_font()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_fill}{}}}
-\subsection{Method \code{get_fill()}}{
-get fill ids
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_fill()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_border}{}}}
-\subsection{Method \code{get_border()}}{
-get border ids
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_border()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_xf}{}}}
-\subsection{Method \code{get_xf()}}{
-get xf ids
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_xf()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_cellStyle}{}}}
-\subsection{Method \code{get_cellStyle()}}{
-get cellstyle ids
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_cellStyle()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_cellStyleXf}{}}}
-\subsection{Method \code{get_cellStyleXf()}}{
-get cellstylexf ids
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_cellStyleXf()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_dxf}{}}}
-\subsection{Method \code{get_dxf()}}{
-get dxf ids
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_dxf()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_numfmt_id}{}}}
-\subsection{Method \code{get_numfmt_id()}}{
-get numfmt id by name
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_numfmt_id(name)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{name}}{name}
-}
-\if{html}{\out{
}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_font_id}{}}}
-\subsection{Method \code{get_font_id()}}{
-get font id by name
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_font_id(name)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{name}}{name}
-}
-\if{html}{\out{
}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_fill_id}{}}}
-\subsection{Method \code{get_fill_id()}}{
-get fill id by name
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_fill_id(name)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{name}}{name}
-}
-\if{html}{\out{
}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_border_id}{}}}
-\subsection{Method \code{get_border_id()}}{
-get border id by name
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_border_id(name)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{name}}{name}
-}
-\if{html}{\out{
}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_xf_id}{}}}
-\subsection{Method \code{get_xf_id()}}{
-get xf id by name
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_xf_id(name)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{name}}{name}
-}
-\if{html}{\out{
}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_cellStyle_id}{}}}
-\subsection{Method \code{get_cellStyle_id()}}{
-get cellstyle id by name
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_cellStyle_id(name)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{name}}{name}
-}
-\if{html}{\out{
}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_cellStyleXf_id}{}}}
-\subsection{Method \code{get_cellStyleXf_id()}}{
-get cellstyleXf id by name
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_cellStyleXf_id(name)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{name}}{name}
-}
-\if{html}{\out{
}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_dxf_id}{}}}
-\subsection{Method \code{get_dxf_id()}}{
-get dxf id by name
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_dxf_id(name)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{name}}{name}
-}
-\if{html}{\out{
}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-get_tableStyle_id}{}}}
-\subsection{Method \code{get_tableStyle_id()}}{
-get tableStyle id by name
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$get_tableStyle_id(name)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{name}}{name}
-}
-\if{html}{\out{
}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-next_numfmt_id}{}}}
-\subsection{Method \code{next_numfmt_id()}}{
-get next numfmt id
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$next_numfmt_id()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-next_font_id}{}}}
-\subsection{Method \code{next_font_id()}}{
-get next font id
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$next_font_id()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-next_fill_id}{}}}
-\subsection{Method \code{next_fill_id()}}{
-get next fill id
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$next_fill_id()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-next_border_id}{}}}
-\subsection{Method \code{next_border_id()}}{
-get next border id
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$next_border_id()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-next_xf_id}{}}}
-\subsection{Method \code{next_xf_id()}}{
-get next xf id
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$next_xf_id()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-next_cellstyle_id}{}}}
-\subsection{Method \code{next_cellstyle_id()}}{
-get next xf id
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$next_cellstyle_id()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-next_cellstylexf_id}{}}}
-\subsection{Method \code{next_cellstylexf_id()}}{
-get next xf id
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$next_cellstylexf_id()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-next_dxf_id}{}}}
-\subsection{Method \code{next_dxf_id()}}{
-get next dxf id
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$next_dxf_id()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-next_tableStyle_id}{}}}
-\subsection{Method \code{next_tableStyle_id()}}{
-get next tableStyle id
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$next_tableStyle_id()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-getstyle_ids}{}}}
-\subsection{Method \code{getstyle_ids()}}{
-get named style ids
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$getstyle_ids(name)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{name}}{name}
-}
-\if{html}{\out{
}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-add}{}}}
-\subsection{Method \code{add()}}{
-add entry
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$add(style, style_name, skip_duplicates = TRUE)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{style}}{new_style}
-
-\item{\code{style_name}}{a unique name identifying the style}
-
-\item{\code{skip_duplicates}}{should duplicates be added?}
-}
-\if{html}{\out{
}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-init_named_style}{}}}
-\subsection{Method \code{init_named_style()}}{
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$init_named_style(name, font_name = "Arial", font_size = 11)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{name}}{style name}
-
-\item{\code{font_name, font_size}}{optional else the default of the theme}
-
-\item{\code{wb}}{wbWorkbook}
-}
-\if{html}{\out{
}}
-}
-\subsection{Details}{
-possible styles are:
-"20\% - Accent1"
-"20\% - Accent2"
-"20\% - Accent3"
-"20\% - Accent4"
-"20\% - Accent5"
-"20\% - Accent6"
-"40\% - Accent1"
-"40\% - Accent2"
-"40\% - Accent3"
-"40\% - Accent4"
-"40\% - Accent5"
-"40\% - Accent6"
-"60\% - Accent1"
-"60\% - Accent2"
-"60\% - Accent3"
-"60\% - Accent4"
-"60\% - Accent5"
-"60\% - Accent6"
-"Accent1"
-"Accent2"
-"Accent3"
-"Accent4"
-"Accent5"
-"Accent6"
-"Bad"
-"Calculation"
-"Check Cell"
-"Comma"
-"Comma [0]"
-"Currency"
-"Currency [0]"
-"Explanatory Text"
-"Good"
-"Heading 1"
-"Heading 2"
-"Heading 3"
-"Heading 4"
-"Input"
-"Linked Cell"
-”Neutral"
-"Normal"
-"Note"
-"Output"
-"Per cent"
-"Title"
-"Total"
-"Warning Text"
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbStylesMgr-clone}{}}}
-\subsection{Method \code{clone()}}{
-The objects of this class are cloneable with this method.
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{style_mgr$clone(deep = FALSE)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{deep}}{Whether to make a deep clone.}
-}
-\if{html}{\out{
}}
-}
-}
-}
diff --git a/man/wbChartSheet.Rd b/man/wbChartSheet.Rd
index d094fca41..96bc52d25 100644
--- a/man/wbChartSheet.Rd
+++ b/man/wbChartSheet.Rd
@@ -91,68 +91,65 @@ get (prior) sheet data
add sheetview
\subsection{Usage}{
\if{html}{\out{}}\preformatted{wbChartSheet$set_sheetview(
- colorId = NULL,
- defaultGridColor = NULL,
- rightToLeft = NULL,
- showFormulas = NULL,
- showGridLines = NULL,
- showOutlineSymbols = NULL,
- showRowColHeaders = NULL,
- showRuler = NULL,
- showWhiteSpace = NULL,
- showZeros = NULL,
- tabSelected = NULL,
- topLeftCell = NULL,
+ color_id = NULL,
+ default_grid_color = NULL,
+ right_to_left = NULL,
+ show_formulas = NULL,
+ show_grid_lines = NULL,
+ show_outline_symbols = NULL,
+ show_row_col_headers = NULL,
+ show_ruler = NULL,
+ show_white_space = NULL,
+ show_zeros = NULL,
+ tab_selected = NULL,
+ top_left_cell = NULL,
view = NULL,
- windowProtection = NULL,
- workbookViewId = NULL,
- zoomScale = NULL,
- zoomScaleNormal = NULL,
- zoomScalePageLayoutView = NULL,
- zoomScaleSheetLayoutView = NULL
+ window_protection = NULL,
+ workbook_view_id = NULL,
+ zoom_scale = NULL,
+ zoom_scale_normal = NULL,
+ zoom_scale_page_layout_view = NULL,
+ zoom_scale_sheet_layout_view = NULL,
+ ...
)}\if{html}{\out{
}}
}
\subsection{Arguments}{
\if{html}{\out{}}
\describe{
-\item{\code{colorId}}{colorId}
+\item{\code{color_id, default_grid_color}}{Integer: A color, default is 64}
-\item{\code{defaultGridColor}}{defaultGridColor}
+\item{\code{right_to_left}}{Logical: if TRUE column ordering is right to left}
-\item{\code{rightToLeft}}{rightToLeft}
+\item{\code{show_formulas}}{Logical: if TRUE cell formulas are shown}
-\item{\code{showFormulas}}{showFormulas}
+\item{\code{show_grid_lines}}{Logical: if TRUE the worksheet grid is shown}
-\item{\code{showGridLines}}{showGridLines}
+\item{\code{show_outline_symbols}}{Logical: if TRUE outline symbols are shown}
-\item{\code{showOutlineSymbols}}{showOutlineSymbols}
+\item{\code{show_row_col_headers}}{Logical: if TRUE row and column headers are shown}
-\item{\code{showRowColHeaders}}{showRowColHeaders}
+\item{\code{show_ruler}}{Logical: if TRUE a ruler is shown in page layout view}
-\item{\code{showRuler}}{showRuler}
+\item{\code{show_white_space}}{Logical: if TRUE margins are shown in page layout view}
-\item{\code{showWhiteSpace}}{showWhiteSpace}
+\item{\code{show_zeros}}{Logical: if FALSE cells containing zero are shown blank if !showFormulas}
-\item{\code{showZeros}}{showZeros}
+\item{\code{tab_selected}}{Integer: zero vector indicating the selected tab}
-\item{\code{tabSelected}}{tabSelected}
+\item{\code{top_left_cell}}{Cell: the cell shown in the top left corner / or top right with rightToLeft}
-\item{\code{topLeftCell}}{topLeftCell}
+\item{\code{view}}{View: "normal", "pageBreakPreview" or "pageLayout"}
-\item{\code{view}}{view}
+\item{\code{window_protection}}{Logical: if TRUE the panes are protected}
-\item{\code{windowProtection}}{windowProtection}
+\item{\code{workbook_view_id}}{integer: Pointing to some other view inside the workbook}
-\item{\code{workbookViewId}}{workbookViewId}
+\item{\code{zoom_scale, zoom_scale_normal, zoom_scale_page_layout_view, zoom_scale_sheet_layout_view}}{Integer: the zoom scale should be between 10 and 400. These are values for current, normal etc.}
-\item{\code{zoomScale}}{zoomScale}
+\item{\code{...}}{additional arguments}
-\item{\code{zoomScaleNormal}}{zoomScaleNormal}
-
-\item{\code{zoomScalePageLayoutView}}{zoomScalePageLayoutView}
-
-\item{\code{zoomScaleSheetLayoutView}}{zoomScaleSheetLayoutView}
+\item{\code{sheet}}{sheet}
}
\if{html}{\out{
}}
}
diff --git a/man/wbComment.Rd b/man/wbComment.Rd
deleted file mode 100644
index 04ccf8cc9..000000000
--- a/man/wbComment.Rd
+++ /dev/null
@@ -1,99 +0,0 @@
-% Generated by roxygen2: do not edit by hand
-% Please edit documentation in R/class-comment.R
-\name{wbComment}
-\alias{wbComment}
-\title{R6 class for a Workbook Comments}
-\value{
-The \code{wbComment} object, invisibly; called for its side effects
-}
-\description{
-R6 class for a Workbook Comments
-
-R6 class for a Workbook Comments
-}
-\details{
-A comment
-}
-\section{Public fields}{
-\if{html}{\out{}}
-\describe{
-\item{\code{text}}{Comment text}
-
-\item{\code{author}}{The comment author}
-
-\item{\code{style}}{A style for the comment}
-
-\item{\code{visible}}{\code{logical}, if \code{FALSE} is not visible}
-
-\item{\code{width}}{Width of the comment in ... units}
-
-\item{\code{height}}{Height of comment in ... units}
-}
-\if{html}{\out{
}}
-}
-\section{Methods}{
-\subsection{Public methods}{
-\itemize{
-\item \href{#method-wbComment-new}{\code{wbComment$new()}}
-\item \href{#method-wbComment-print}{\code{wbComment$print()}}
-\item \href{#method-wbComment-clone}{\code{wbComment$clone()}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbComment-new}{}}}
-\subsection{Method \code{new()}}{
-Creates a new \code{wbComment} object
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbComment$new(text, author, style, visible = TRUE, width = 2, height = 4)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{text}}{Comment text}
-
-\item{\code{author}}{The comment author}
-
-\item{\code{style}}{A style for the comment}
-
-\item{\code{visible}}{\code{logical}, if \code{FALSE} is not visible}
-
-\item{\code{width}}{Width of the comment in ... units}
-
-\item{\code{height}}{Height of comment in ... units}
-}
-\if{html}{\out{
}}
-}
-\subsection{Returns}{
-a \code{wbComment} object
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbComment-print}{}}}
-\subsection{Method \code{print()}}{
-Prints the object
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbComment$print()}\if{html}{\out{
}}
-}
-
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbComment-clone}{}}}
-\subsection{Method \code{clone()}}{
-The objects of this class are cloneable with this method.
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbComment$clone(deep = FALSE)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{deep}}{Whether to make a deep clone.}
-}
-\if{html}{\out{
}}
-}
-}
-}
diff --git a/man/wbHyperlink.Rd b/man/wbHyperlink.Rd
deleted file mode 100644
index 523f4a4ed..000000000
--- a/man/wbHyperlink.Rd
+++ /dev/null
@@ -1,123 +0,0 @@
-% Generated by roxygen2: do not edit by hand
-% Please edit documentation in R/class-hyperlink.R
-\name{wbHyperlink}
-\alias{wbHyperlink}
-\title{R6 class for a Workbook Hyperlink}
-\value{
-A character vector of html if \code{is_external} is \code{TRUE}, otherwise \code{NULL}
-}
-\description{
-R6 class for a Workbook Hyperlink
-
-R6 class for a Workbook Hyperlink
-}
-\details{
-A hyperlink
-}
-\section{Public fields}{
-\if{html}{\out{}}
-\describe{
-\item{\code{ref}}{ref}
-
-\item{\code{target}}{target}
-
-\item{\code{location}}{location}
-
-\item{\code{display}}{display}
-
-\item{\code{is_external}}{is_external}
-}
-\if{html}{\out{
}}
-}
-\section{Methods}{
-\subsection{Public methods}{
-\itemize{
-\item \href{#method-wbHyperlink-new}{\code{wbHyperlink$new()}}
-\item \href{#method-wbHyperlink-to_xml}{\code{wbHyperlink$to_xml()}}
-\item \href{#method-wbHyperlink-to_target_xml}{\code{wbHyperlink$to_target_xml()}}
-\item \href{#method-wbHyperlink-clone}{\code{wbHyperlink$clone()}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbHyperlink-new}{}}}
-\subsection{Method \code{new()}}{
-Creates a new \code{wbHyperlink} object
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbHyperlink$new(ref, target, location, display = NULL, is_external = TRUE)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{ref}}{ref}
-
-\item{\code{target}}{target}
-
-\item{\code{location}}{location}
-
-\item{\code{display}}{display}
-
-\item{\code{is_external}}{is_external}
-}
-\if{html}{\out{
}}
-}
-\subsection{Returns}{
-a \code{wbHyperlink} object
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbHyperlink-to_xml}{}}}
-\subsection{Method \code{to_xml()}}{
-Convert to xml
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbHyperlink$to_xml(id)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{id}}{???}
-}
-\if{html}{\out{
}}
-}
-\subsection{Returns}{
-A character vector of xml
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbHyperlink-to_target_xml}{}}}
-\subsection{Method \code{to_target_xml()}}{
-Convert to target xml
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbHyperlink$to_target_xml(id)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{id}}{???}
-}
-\if{html}{\out{
}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbHyperlink-clone}{}}}
-\subsection{Method \code{clone()}}{
-The objects of this class are cloneable with this method.
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbHyperlink$clone(deep = FALSE)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{deep}}{Whether to make a deep clone.}
-}
-\if{html}{\out{
}}
-}
-}
-}
diff --git a/man/wbSheetData.Rd b/man/wbSheetData.Rd
deleted file mode 100644
index 1eba1e217..000000000
--- a/man/wbSheetData.Rd
+++ /dev/null
@@ -1,66 +0,0 @@
-% Generated by roxygen2: do not edit by hand
-% Please edit documentation in R/class-sheet-data.R
-\name{wbSheetData}
-\alias{wbSheetData}
-\alias{wb_sheet_data}
-\title{R6 class for a Workbook Hyperlink}
-\usage{
-wb_sheet_data()
-}
-\description{
-R6 class for a Workbook Hyperlink
-
-R6 class for a Workbook Hyperlink
-}
-\details{
-A hyperlink
-}
-\section{Public fields}{
-\if{html}{\out{}}
-\describe{
-\item{\code{row_attr}}{row_attr}
-
-\item{\code{cc}}{cc}
-
-\item{\code{cc_out}}{cc_out}
-}
-\if{html}{\out{
}}
-}
-\section{Methods}{
-\subsection{Public methods}{
-\itemize{
-\item \href{#method-wbSheetData-new}{\code{wbSheetData$new()}}
-\item \href{#method-wbSheetData-clone}{\code{wbSheetData$clone()}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbSheetData-new}{}}}
-\subsection{Method \code{new()}}{
-Creates a new \code{wbSheetData} object
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbSheetData$new()}\if{html}{\out{
}}
-}
-
-\subsection{Returns}{
-a \code{wbSheetData} object
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbSheetData-clone}{}}}
-\subsection{Method \code{clone()}}{
-The objects of this class are cloneable with this method.
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbSheetData$clone(deep = FALSE)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{deep}}{Whether to make a deep clone.}
-}
-\if{html}{\out{
}}
-}
-}
-}
diff --git a/man/wbWorkbook.Rd b/man/wbWorkbook.Rd
index 715e9c2d5..d18961632 100644
--- a/man/wbWorkbook.Rd
+++ b/man/wbWorkbook.Rd
@@ -346,8 +346,9 @@ Creates a new \code{wbWorkbook} object
title = NULL,
subject = NULL,
category = NULL,
- datetimeCreated = Sys.time(),
- theme = NULL
+ datetime_created = Sys.time(),
+ theme = NULL,
+ ...
)}\if{html}{\out{}}
}
@@ -362,11 +363,13 @@ Creates a new \code{wbWorkbook} object
\item{\code{category}}{category}
-\item{\code{datetimeCreated}}{The datetime (as \code{POSIXt}) the workbook is
+\item{\code{datetime_created}}{The datetime (as \code{POSIXt}) the workbook is
created. Defaults to the current \code{Sys.time()} when the workbook object
is created, not when the Excel files are saved.}
\item{\code{theme}}{Optional theme identified by string or number}
+
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{}}
}
@@ -435,7 +438,7 @@ Add a chart sheet to the workbook
\subsection{Usage}{
\if{html}{\out{}}\preformatted{wbWorkbook$add_chartsheet(
sheet = next_sheet(),
- tabColor = NULL,
+ tab_color = NULL,
zoom = 100,
visible = c("true", "false", "hidden", "visible", "veryhidden"),
...
@@ -447,7 +450,7 @@ Add a chart sheet to the workbook
\describe{
\item{\code{sheet}}{sheet}
-\item{\code{tabColor}}{tabColor}
+\item{\code{tab_color}}{tab_color}
\item{\code{zoom}}{zoom}
@@ -469,21 +472,21 @@ Add worksheet to the \code{wbWorkbook} object
\subsection{Usage}{
\if{html}{\out{
}}\preformatted{wbWorkbook$add_worksheet(
sheet = next_sheet(),
- gridLines = TRUE,
- rowColHeaders = TRUE,
- tabColor = NULL,
+ grid_lines = TRUE,
+ row_col_headers = TRUE,
+ tab_color = NULL,
zoom = 100,
header = NULL,
footer = NULL,
- oddHeader = header,
- oddFooter = footer,
- evenHeader = header,
- evenFooter = footer,
- firstHeader = header,
- firstFooter = footer,
+ odd_header = header,
+ odd_footer = footer,
+ even_header = header,
+ even_footer = footer,
+ first_header = header,
+ first_footer = footer,
visible = c("true", "false", "hidden", "visible", "veryhidden"),
- hasDrawing = FALSE,
- paperSize = getOption("openxlsx2.paperSize", default = 9),
+ has_drawing = FALSE,
+ paper_size = getOption("openxlsx2.paperSize", default = 9),
orientation = getOption("openxlsx2.orientation", default = "portrait"),
hdpi = getOption("openxlsx2.hdpi", default = getOption("openxlsx2.dpi", default = 300)),
vdpi = getOption("openxlsx2.vdpi", default = getOption("openxlsx2.dpi", default = 300)),
@@ -496,11 +499,11 @@ Add worksheet to the \code{wbWorkbook} object
\describe{
\item{\code{sheet}}{sheet}
-\item{\code{gridLines}}{gridLines}
+\item{\code{grid_lines}}{gridLines}
-\item{\code{rowColHeaders}}{rowColHeaders}
+\item{\code{row_col_headers}}{rowColHeaders}
-\item{\code{tabColor}}{tabColor}
+\item{\code{tab_color}}{tabColor}
\item{\code{zoom}}{zoom}
@@ -508,23 +511,23 @@ Add worksheet to the \code{wbWorkbook} object
\item{\code{footer}}{footer}
-\item{\code{oddHeader}}{oddHeader}
+\item{\code{odd_header}}{oddHeader}
-\item{\code{oddFooter}}{oddFooter}
+\item{\code{odd_footer}}{oddFooter}
-\item{\code{evenHeader}}{evenHeader}
+\item{\code{even_header}}{evenHeader}
-\item{\code{evenFooter}}{evenFooter}
+\item{\code{even_footer}}{evenFooter}
-\item{\code{firstHeader}}{firstHeader}
+\item{\code{first_header}}{firstHeader}
-\item{\code{firstFooter}}{firstFooter}
+\item{\code{first_footer}}{firstFooter}
\item{\code{visible}}{visible}
-\item{\code{hasDrawing}}{hasDrawing}
+\item{\code{has_drawing}}{hasDrawing}
-\item{\code{paperSize}}{paperSize}
+\item{\code{paper_size}}{paperSize}
\item{\code{orientation}}{orientation}
@@ -568,19 +571,20 @@ add data
\if{html}{\out{
}}\preformatted{wbWorkbook$add_data(
sheet = current_sheet(),
x,
- startCol = 1,
- startRow = 1,
- dims = rowcol_to_dims(startRow, startCol),
+ dims = rowcol_to_dims(start_row, start_col),
+ start_col = 1,
+ start_row = 1,
array = FALSE,
- colNames = TRUE,
- rowNames = FALSE,
- withFilter = FALSE,
+ col_names = TRUE,
+ row_names = FALSE,
+ with_filter = FALSE,
name = NULL,
sep = ", ",
- applyCellStyle = TRUE,
- removeCellStyle = FALSE,
+ apply_cell_style = TRUE,
+ remove_cell_style = FALSE,
na.strings = na_strings(),
- inline_strings = TRUE
+ inline_strings = TRUE,
+ ...
)}\if{html}{\out{
}}
}
@@ -591,33 +595,35 @@ add data
\item{\code{x}}{x}
-\item{\code{startCol}}{startCol}
+\item{\code{dims}}{dims}
-\item{\code{startRow}}{startRow}
+\item{\code{start_col}}{startCol}
-\item{\code{dims}}{dims}
+\item{\code{start_row}}{startRow}
\item{\code{array}}{array}
-\item{\code{colNames}}{colNames}
+\item{\code{col_names}}{colNames}
-\item{\code{rowNames}}{rowNames}
+\item{\code{row_names}}{rowNames}
-\item{\code{withFilter}}{withFilter}
+\item{\code{with_filter}}{withFilter}
\item{\code{name}}{name}
\item{\code{sep}}{sep}
-\item{\code{applyCellStyle}}{applyCellStyle}
+\item{\code{apply_cell_style}}{applyCellStyle}
-\item{\code{removeCellStyle}}{if writing into existing cells, should the cell style be removed?}
+\item{\code{remove_cell_style}}{if writing into existing cells, should the cell style be removed?}
\item{\code{na.strings}}{Value used for replacing \code{NA} values from \code{x}. Default
\code{na_strings()} uses the special \verb{#N/A} value within the workbook.}
\item{\code{inline_strings}}{write characters as inline strings}
+\item{\code{...}}{additional arguments}
+
\item{\code{return}}{The \code{wbWorkbook} object}
}
\if{html}{\out{
}}
@@ -632,23 +638,24 @@ add a data table
\if{html}{\out{
}}\preformatted{wbWorkbook$add_data_table(
sheet = current_sheet(),
x,
- startCol = 1,
- startRow = 1,
- dims = rowcol_to_dims(startRow, startCol),
- colNames = TRUE,
- rowNames = FALSE,
- tableStyle = "TableStyleLight9",
- tableName = NULL,
- withFilter = TRUE,
+ dims = rowcol_to_dims(start_row, start_col),
+ start_col = 1,
+ start_row = 1,
+ col_names = TRUE,
+ row_names = FALSE,
+ table_style = "TableStyleLight9",
+ table_name = NULL,
+ with_filter = TRUE,
sep = ", ",
- firstColumn = FALSE,
- lastColumn = FALSE,
- bandedRows = TRUE,
- bandedCols = FALSE,
- applyCellStyle = TRUE,
- removeCellStyle = FALSE,
+ first_column = FALSE,
+ last_column = FALSE,
+ banded_rows = TRUE,
+ banded_cols = FALSE,
+ apply_cell_style = TRUE,
+ remove_cell_style = FALSE,
na.strings = na_strings(),
- inline_strings = TRUE
+ inline_strings = TRUE,
+ ...
)}\if{html}{\out{
}}
}
@@ -659,40 +666,42 @@ add a data table
\item{\code{x}}{x}
-\item{\code{startCol}}{startCol}
+\item{\code{dims}}{dims}
-\item{\code{startRow}}{startRow}
+\item{\code{start_col}}{startCol}
-\item{\code{dims}}{dims}
+\item{\code{start_row}}{startRow}
-\item{\code{colNames}}{colNames}
+\item{\code{col_names}}{colNames}
-\item{\code{rowNames}}{rowNames}
+\item{\code{row_names}}{rowNames}
-\item{\code{tableStyle}}{tableStyle}
+\item{\code{table_style}}{tableStyle}
-\item{\code{tableName}}{tableName}
+\item{\code{table_name}}{tableName}
-\item{\code{withFilter}}{withFilter}
+\item{\code{with_filter}}{withFilter}
\item{\code{sep}}{sep}
-\item{\code{firstColumn}}{firstColumn}
+\item{\code{first_column}}{firstColumn}
-\item{\code{lastColumn}}{lastColumn}
+\item{\code{last_column}}{lastColumn}
-\item{\code{bandedRows}}{bandedRows}
+\item{\code{banded_rows}}{bandedRows}
-\item{\code{bandedCols}}{bandedCols}
+\item{\code{banded_cols}}{bandedCols}
-\item{\code{applyCellStyle}}{applyCellStyle}
+\item{\code{apply_cell_style}}{applyCellStyle}
-\item{\code{removeCellStyle}}{if writing into existing cells, should the cell style be removed?}
+\item{\code{remove_cell_style}}{if writing into existing cells, should the cell style be removed?}
\item{\code{na.strings}}{Value used for replacing \code{NA} values from \code{x}. Default
\code{na_strings()} uses the special \verb{#N/A} value within the workbook.}
\item{\code{inline_strings}}{write characters as inline strings}
+
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{
}}
}
@@ -749,13 +758,14 @@ add formula
\if{html}{\out{}}\preformatted{wbWorkbook$add_formula(
sheet = current_sheet(),
x,
- startCol = 1,
- startRow = 1,
- dims = rowcol_to_dims(startRow, startCol),
+ dims = rowcol_to_dims(start_row, start_col),
+ start_col = 1,
+ start_row = 1,
array = FALSE,
cm = FALSE,
- applyCellStyle = TRUE,
- removeCellStyle = FALSE
+ apply_cell_style = TRUE,
+ remove_cell_style = FALSE,
+ ...
)}\if{html}{\out{
}}
}
@@ -766,19 +776,21 @@ add formula
\item{\code{x}}{x}
-\item{\code{startCol}}{startCol}
+\item{\code{dims}}{dims}
-\item{\code{startRow}}{startRow}
+\item{\code{start_col}}{startCol}
-\item{\code{dims}}{dims}
+\item{\code{start_row}}{startRow}
\item{\code{array}}{array}
\item{\code{cm}}{cm}
-\item{\code{applyCellStyle}}{applyCellStyle}
+\item{\code{apply_cell_style}}{applyCellStyle}
-\item{\code{removeCellStyle}}{if writing into existing cells, should the cell style be removed?}
+\item{\code{remove_cell_style}}{if writing into existing cells, should the cell style be removed?}
+
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{}}
}
@@ -810,26 +822,27 @@ to_df
\subsection{Usage}{
\if{html}{\out{}}\preformatted{wbWorkbook$to_df(
sheet,
- startRow = 1,
- startCol = NULL,
- rowNames = FALSE,
- colNames = TRUE,
- skipEmptyRows = FALSE,
- skipEmptyCols = FALSE,
- skipHiddenRows = FALSE,
- skipHiddenCols = FALSE,
+ start_row = 1,
+ start_col = NULL,
+ row_names = FALSE,
+ col_names = TRUE,
+ skip_empty_rows = FALSE,
+ skip_empty_cols = FALSE,
+ skip_hidden_rows = FALSE,
+ skip_hidden_cols = FALSE,
rows = NULL,
cols = NULL,
- detectDates = TRUE,
+ detect_dates = TRUE,
na.strings = "#N/A",
na.numbers = NA,
- fillMergedCells = FALSE,
+ fill_merged_cells = FALSE,
dims,
- showFormula = FALSE,
+ show_formula = FALSE,
convert = TRUE,
types,
named_region,
- keep_attributes = FALSE
+ keep_attributes = FALSE,
+ ...
)}\if{html}{\out{
}}
}
@@ -838,37 +851,37 @@ to_df
\describe{
\item{\code{sheet}}{Either sheet name or index. When missing the first sheet in the workbook is selected.}
-\item{\code{startRow}}{first row to begin looking for data.}
+\item{\code{start_row}}{first row to begin looking for data.}
-\item{\code{startCol}}{first column to begin looking for data.}
+\item{\code{start_col}}{first column to begin looking for data.}
-\item{\code{rowNames}}{If TRUE, the first col of data will be used as row names.}
+\item{\code{row_names}}{If TRUE, the first col of data will be used as row names.}
-\item{\code{colNames}}{If TRUE, the first row of data will be used as column names.}
+\item{\code{col_names}}{If TRUE, the first row of data will be used as column names.}
-\item{\code{skipEmptyRows}}{If TRUE, empty rows are skipped.}
+\item{\code{skip_empty_rows}}{If TRUE, empty rows are skipped.}
-\item{\code{skipEmptyCols}}{If TRUE, empty columns are skipped.}
+\item{\code{skip_empty_cols}}{If TRUE, empty columns are skipped.}
-\item{\code{skipHiddenRows}}{If TRUE, hidden rows are skipped.}
+\item{\code{skip_hidden_rows}}{If TRUE, hidden rows are skipped.}
-\item{\code{skipHiddenCols}}{If TRUE, hidden columns are skipped.}
+\item{\code{skip_hidden_cols}}{If TRUE, hidden columns are skipped.}
\item{\code{rows}}{A numeric vector specifying which rows in the Excel file to read. If NULL, all rows are read.}
\item{\code{cols}}{A numeric vector specifying which columns in the Excel file to read. If NULL, all columns are read.}
-\item{\code{detectDates}}{If TRUE, attempt to recognize dates and perform conversion.}
+\item{\code{detect_dates}}{If TRUE, attempt to recognize dates and perform conversion.}
\item{\code{na.strings}}{A character vector of strings which are to be interpreted as NA. Blank cells will be returned as NA.}
\item{\code{na.numbers}}{A numeric vector of digits which are to be interpreted as NA. Blank cells will be returned as NA.}
-\item{\code{fillMergedCells}}{If TRUE, the value in a merged cell is given to all cells within the merge.}
+\item{\code{fill_merged_cells}}{If TRUE, the value in a merged cell is given to all cells within the merge.}
\item{\code{dims}}{Character string of type "A1:B2" as optional dimensions to be imported.}
-\item{\code{showFormula}}{If TRUE, the underlying Excel formulas are shown.}
+\item{\code{show_formula}}{If TRUE, the underlying Excel formulas are shown.}
\item{\code{convert}}{If TRUE, a conversion to dates and numerics is attempted.}
@@ -877,6 +890,8 @@ to_df
\item{\code{named_region}}{Character string with a named_region (defined name or table). If no sheet is selected, the first appearance will be selected.}
\item{\code{keep_attributes}}{If TRUE additional attributes are returned. (These are used internally to define a cell type.)}
+
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{}}
}
@@ -892,10 +907,11 @@ load workbook
\subsection{Usage}{
\if{html}{\out{}}\preformatted{wbWorkbook$load(
file,
- xlsxFile = NULL,
+ xlsx_file = NULL,
sheet,
data_only = FALSE,
- calc_chain = FALSE
+ calc_chain = FALSE,
+ ...
)}\if{html}{\out{
}}
}
@@ -904,13 +920,15 @@ load workbook
\describe{
\item{\code{file}}{file}
-\item{\code{xlsxFile}}{xlsxFile}
+\item{\code{xlsx_file}}{xlsx_file}
\item{\code{sheet}}{sheet}
\item{\code{data_only}}{data_only}
\item{\code{calc_chain}}{calc_chain}
+
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{}}
}
@@ -1098,9 +1116,9 @@ A list of of the font
Get the base font
\subsection{Usage}{
\if{html}{\out{}}\preformatted{wbWorkbook$set_base_font(
- fontSize = 11,
- fontColor = wb_color(theme = "1"),
- fontName = "Calibri",
+ font_size = 11,
+ font_color = wb_color(theme = "1"),
+ font_name = "Calibri",
...
)}\if{html}{\out{
}}
}
@@ -1108,11 +1126,11 @@ Get the base font
\subsection{Arguments}{
\if{html}{\out{}}
\describe{
-\item{\code{fontSize}}{fontSize}
+\item{\code{font_size}}{fontSize}
-\item{\code{fontColor}}{fontColor}
+\item{\code{font_color}}{font_color}
-\item{\code{fontName}}{fontName}
+\item{\code{font_name}}{font_name}
\item{\code{...}}{...}
}
@@ -1129,50 +1147,53 @@ The \code{wbWorkbook} object
Set the book views
\subsection{Usage}{
\if{html}{\out{
}}\preformatted{wbWorkbook$set_bookview(
- activeTab = NULL,
- autoFilterDateGrouping = NULL,
- firstSheet = NULL,
+ active_tab = NULL,
+ auto_filter_date_grouping = NULL,
+ first_sheet = NULL,
minimized = NULL,
- showHorizontalScroll = NULL,
- showSheetTabs = NULL,
- showVerticalScroll = NULL,
- tabRatio = NULL,
+ show_horizontal_scroll = NULL,
+ show_sheet_tabs = NULL,
+ show_vertical_scroll = NULL,
+ tab_ratio = NULL,
visibility = NULL,
- windowHeight = NULL,
- windowWidth = NULL,
- xWindow = NULL,
- yWindow = NULL
+ window_height = NULL,
+ window_width = NULL,
+ x_window = NULL,
+ y_window = NULL,
+ ...
)}\if{html}{\out{
}}
}
\subsection{Arguments}{
\if{html}{\out{
}}
\describe{
-\item{\code{activeTab}}{activeTab}
+\item{\code{active_tab}}{activeTab}
-\item{\code{autoFilterDateGrouping}}{autoFilterDateGrouping}
+\item{\code{auto_filter_date_grouping}}{autoFilterDateGrouping}
-\item{\code{firstSheet}}{firstSheet}
+\item{\code{first_sheet}}{firstSheet}
\item{\code{minimized}}{minimized}
-\item{\code{showHorizontalScroll}}{showHorizontalScroll}
+\item{\code{show_horizontal_scroll}}{showHorizontalScroll}
-\item{\code{showSheetTabs}}{showSheetTabs}
+\item{\code{show_sheet_tabs}}{showSheetTabs}
-\item{\code{showVerticalScroll}}{showVerticalScroll}
+\item{\code{show_vertical_scroll}}{showVerticalScroll}
-\item{\code{tabRatio}}{tabRatio}
+\item{\code{tab_ratio}}{tabRatio}
\item{\code{visibility}}{visibility}
-\item{\code{windowHeight}}{windowHeight}
+\item{\code{window_height}}{windowHeight}
-\item{\code{windowWidth}}{windowWidth}
+\item{\code{window_width}}{windowWidth}
-\item{\code{xWindow}}{xWindow}
+\item{\code{x_window}}{xWindow}
-\item{\code{yWindow}}{yWindow}
+\item{\code{y_window}}{yWindow}
+
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{
}}
}
@@ -1474,19 +1495,19 @@ Adds data validation
\subsection{Usage}{
\if{html}{\out{
}}\preformatted{wbWorkbook$add_data_validation(
sheet = current_sheet(),
- cols,
- rows,
+ dims = "A1",
type,
operator,
value,
- allowBlank = TRUE,
- showInputMsg = TRUE,
- showErrorMsg = TRUE,
- errorStyle = NULL,
- errorTitle = NULL,
+ allow_blank = TRUE,
+ show_input_msg = TRUE,
+ show_error_msg = TRUE,
+ error_style = NULL,
+ error_title = NULL,
error = NULL,
- promptTitle = NULL,
- prompt = NULL
+ prompt_title = NULL,
+ prompt = NULL,
+ ...
)}\if{html}{\out{
}}
}
@@ -1495,9 +1516,7 @@ Adds data validation
\describe{
\item{\code{sheet}}{sheet}
-\item{\code{cols}}{cols}
-
-\item{\code{rows}}{rows}
+\item{\code{dims}}{cell dimension}
\item{\code{type}}{type}
@@ -1505,21 +1524,23 @@ Adds data validation
\item{\code{value}}{value}
-\item{\code{allowBlank}}{allowBlank}
+\item{\code{allow_blank}}{allowBlank}
-\item{\code{showInputMsg}}{showInputMsg}
+\item{\code{show_input_msg}}{showInputMsg}
-\item{\code{showErrorMsg}}{showErrorMsg}
+\item{\code{show_error_msg}}{showErrorMsg}
-\item{\code{errorStyle}}{The icon shown and the options how to deal with such inputs. Default "stop" (cancel), else "information" (prompt popup) or "warning" (prompt accept or change input)}
+\item{\code{error_style}}{The icon shown and the options how to deal with such inputs. Default "stop" (cancel), else "information" (prompt popup) or "warning" (prompt accept or change input)}
-\item{\code{errorTitle}}{The error title}
+\item{\code{error_title}}{The error title}
\item{\code{error}}{The error text}
-\item{\code{promptTitle}}{The prompt title}
+\item{\code{prompt_title}}{The prompt title}
\item{\code{prompt}}{The prompt text}
+
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{
}}
}
@@ -1608,13 +1629,7 @@ The \code{wbWorkbook} object, invisibly
\subsection{Method \code{add_comment()}}{
Add comment
\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorkbook$add_comment(
- sheet = current_sheet(),
- col = NULL,
- row = NULL,
- dims = rowcol_to_dim(row, col),
- comment
-)}\if{html}{\out{
}}
+\if{html}{\out{}}\preformatted{wbWorkbook$add_comment(sheet = current_sheet(), dims = "A1", comment, ...)}\if{html}{\out{
}}
}
\subsection{Arguments}{
@@ -1622,13 +1637,11 @@ Add comment
\describe{
\item{\code{sheet}}{sheet}
-\item{\code{col}}{column to apply the comment}
-
-\item{\code{row}}{row to apply the comment}
-
\item{\code{dims}}{row and column as spreadsheet dimension, e.g. "A1"}
\item{\code{comment}}{a comment to apply to the worksheet}
+
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{}}
}
@@ -1639,13 +1652,7 @@ Add comment
\subsection{Method \code{remove_comment()}}{
Remove comment
\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorkbook$remove_comment(
- sheet = current_sheet(),
- col = NULL,
- row = NULL,
- dims = rowcol_to_dims(row, col),
- gridExpand = TRUE
-)}\if{html}{\out{
}}
+\if{html}{\out{}}\preformatted{wbWorkbook$remove_comment(sheet = current_sheet(), dims = "A1", ...)}\if{html}{\out{
}}
}
\subsection{Arguments}{
@@ -1653,13 +1660,9 @@ Remove comment
\describe{
\item{\code{sheet}}{sheet}
-\item{\code{col}}{column to apply the comment}
-
-\item{\code{row}}{row to apply the comment}
-
\item{\code{dims}}{row and column as spreadsheet dimension, e.g. "A1"}
-\item{\code{gridExpand}}{Remove all comments inside the grid. Similar to dims "A1:B2"}
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{}}
}
@@ -1716,16 +1719,15 @@ Insert an image into a sheet
\subsection{Usage}{
\if{html}{\out{}}\preformatted{wbWorkbook$add_image(
sheet = current_sheet(),
+ dims = "A1",
file,
width = 6,
height = 3,
- startRow = 1,
- startCol = 1,
- rowOffset = 0,
- colOffset = 0,
+ row_offset = 0,
+ col_offset = 0,
units = "in",
dpi = 300,
- dims = rowcol_to_dim(startRow, startCol)
+ ...
)}\if{html}{\out{
}}
}
@@ -1734,25 +1736,21 @@ Insert an image into a sheet
\describe{
\item{\code{sheet}}{sheet}
+\item{\code{dims}}{dims}
+
\item{\code{file}}{file}
\item{\code{width}}{width}
\item{\code{height}}{height}
-\item{\code{startRow}}{startRow}
-
-\item{\code{startCol}}{startCol}
-
-\item{\code{rowOffset}}{rowOffset}
-
-\item{\code{colOffset}}{colOffset}
+\item{\code{row_offset, col_offset}}{offsets}
\item{\code{units}}{units}
\item{\code{dpi}}{dpi}
-\item{\code{dims}}{dims}
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{}}
}
@@ -1768,16 +1766,15 @@ Add plot. A wrapper for add_image()
\subsection{Usage}{
\if{html}{\out{}}\preformatted{wbWorkbook$add_plot(
sheet = current_sheet(),
+ dims = "A1",
width = 6,
height = 4,
- startRow = 1,
- startCol = 1,
- rowOffset = 0,
- colOffset = 0,
- fileType = "png",
+ row_offset = 0,
+ col_offset = 0,
+ file_type = "png",
units = "in",
dpi = 300,
- dims = rowcol_to_dim(startRow, startCol)
+ ...
)}\if{html}{\out{
}}
}
@@ -1786,25 +1783,21 @@ Add plot. A wrapper for add_image()
\describe{
\item{\code{sheet}}{sheet}
+\item{\code{dims}}{dims}
+
\item{\code{width}}{width}
\item{\code{height}}{height}
-\item{\code{startRow}}{startRow}
-
-\item{\code{startCol}}{startCol}
-
-\item{\code{rowOffset}}{rowOffset}
+\item{\code{row_offset, col_offset}}{offsets}
-\item{\code{colOffset}}{colOffset}
-
-\item{\code{fileType}}{fileType}
+\item{\code{file_type}}{fileType}
\item{\code{units}}{units}
\item{\code{dpi}}{dpi}
-\item{\code{dims}}{dims}
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{}}
}
@@ -1817,10 +1810,11 @@ Add xml drawing
\subsection{Usage}{
\if{html}{\out{}}\preformatted{wbWorkbook$add_drawing(
sheet = current_sheet(),
+ dims = "A1",
xml,
- dims = NULL,
- colOffset = 0,
- rowOffset = 0
+ col_offset = 0,
+ row_offset = 0,
+ ...
)}\if{html}{\out{
}}
}
@@ -1829,11 +1823,13 @@ Add xml drawing
\describe{
\item{\code{sheet}}{sheet}
+\item{\code{dims}}{dims}
+
\item{\code{xml}}{xml}
-\item{\code{dims}}{dims}
+\item{\code{col_offset, row_offset}}{offsets for column and row}
-\item{\code{colOffset, rowOffset}}{offsets for column and row}
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{}}
}
@@ -1849,10 +1845,11 @@ Add xml chart
\subsection{Usage}{
\if{html}{\out{}}\preformatted{wbWorkbook$add_chart_xml(
sheet = current_sheet(),
- xml,
dims = NULL,
- colOffset = 0,
- rowOffset = 0
+ xml,
+ col_offset = 0,
+ row_offset = 0,
+ ...
)}\if{html}{\out{
}}
}
@@ -1861,11 +1858,13 @@ Add xml chart
\describe{
\item{\code{sheet}}{sheet}
+\item{\code{dims}}{dims}
+
\item{\code{xml}}{xml}
-\item{\code{dims}}{dims}
+\item{\code{col_offset, row_offset}}{positioning parameters}
-\item{\code{colOffset, rowOffset}}{startCol and startRow}
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{}}
}
@@ -1880,8 +1879,9 @@ Add mschart chart to the workbook
sheet = current_sheet(),
dims = NULL,
graph,
- colOffset = 0,
- rowOffset = 0
+ col_offset = 0,
+ row_offset = 0,
+ ...
)}\if{html}{\out{}}
}
@@ -1894,7 +1894,9 @@ Add mschart chart to the workbook
\item{\code{graph}}{mschart graph}
-\item{\code{colOffset, rowOffset}}{startCol and startRow}
+\item{\code{col_offset, row_offset}}{offsets for column and row}
+
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{}}
}
@@ -2179,10 +2181,11 @@ Sets headers and footers
sheet = current_sheet(),
header = NULL,
footer = NULL,
- evenHeader = NULL,
- evenFooter = NULL,
- firstHeader = NULL,
- firstFooter = NULL
+ even_header = NULL,
+ even_footer = NULL,
+ first_header = NULL,
+ first_footer = NULL,
+ ...
)}\if{html}{\out{}}
}
@@ -2195,13 +2198,15 @@ Sets headers and footers
\item{\code{footer}}{footer}
-\item{\code{evenHeader}}{evenHeader}
+\item{\code{even_header}}{evenHeader}
-\item{\code{evenFooter}}{evenFooter}
+\item{\code{even_footer}}{evenFooter}
-\item{\code{firstHeader}}{firstHeader}
+\item{\code{first_header}}{firstHeader}
-\item{\code{firstFooter}}{firstFooter}
+\item{\code{first_footer}}{firstFooter}
+
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{}}
}
@@ -2315,24 +2320,23 @@ add a named region
\if{html}{\out{}}\preformatted{wbWorkbook$add_named_region(
sheet = current_sheet(),
dims = "A1",
- cols,
- rows,
name,
- localSheet = FALSE,
+ local_sheet = FALSE,
overwrite = FALSE,
comment = NULL,
- customMenu = NULL,
+ custom_menu = NULL,
description = NULL,
is_function = NULL,
- functionGroupId = NULL,
+ function_group_id = NULL,
help = NULL,
hidden = NULL,
- localName = NULL,
- publishToServer = NULL,
- statusBar = NULL,
- vbProcedure = NULL,
- workbookParameter = NULL,
- xml = NULL
+ local_name = NULL,
+ publish_to_server = NULL,
+ status_bar = NULL,
+ vb_procedure = NULL,
+ workbook_parameter = NULL,
+ xml = NULL,
+ ...
)}\if{html}{\out{
}}
}
@@ -2343,41 +2347,39 @@ add a named region
\item{\code{dims}}{dims}
-\item{\code{cols}}{cols}
-
-\item{\code{rows}}{rows}
-
\item{\code{name}}{name}
-\item{\code{localSheet}}{localSheet}
+\item{\code{local_sheet}}{local_sheet}
\item{\code{overwrite}}{overwrite}
\item{\code{comment}}{comment}
-\item{\code{customMenu}}{customMenu}
+\item{\code{custom_menu}}{custom_menu}
\item{\code{description}}{description}
\item{\code{is_function}}{function}
-\item{\code{functionGroupId}}{function group id}
+\item{\code{function_group_id}}{function group id}
\item{\code{help}}{help}
\item{\code{hidden}}{hidden}
-\item{\code{localName}}{localName}
+\item{\code{local_name}}{localName}
-\item{\code{publishToServer}}{publish to server}
+\item{\code{publish_to_server}}{publish to server}
-\item{\code{statusBar}}{status bar}
+\item{\code{status_bar}}{status bar}
-\item{\code{vbProcedure}}{wbProcedure}
+\item{\code{vb_procedure}}{vb procedure}
-\item{\code{workbookParameter}}{workbookParameter}
+\item{\code{workbook_parameter}}{workbookParameter}
\item{\code{xml}}{xml}
+
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{}}
}
@@ -2665,7 +2667,7 @@ provide simple font function
family = "",
scheme = "",
shadow = "",
- vertAlign = "",
+ vert_align = "",
...
)}\if{html}{\out{}}
}
@@ -2705,7 +2707,7 @@ provide simple font function
\item{\code{shadow}}{shadow}
-\item{\code{vertAlign}}{vertical alignment}
+\item{\code{vert_align}}{vertical alignment}
\item{\code{...}}{...}
}
@@ -2766,31 +2768,32 @@ provide simple cell style format function
\if{html}{\out{}}\preformatted{wbWorkbook$add_cell_style(
sheet = current_sheet(),
dims = "A1",
- applyAlignment = NULL,
- applyBorder = NULL,
- applyFill = NULL,
- applyFont = NULL,
- applyNumberFormat = NULL,
- applyProtection = NULL,
- borderId = NULL,
- extLst = NULL,
- fillId = NULL,
- fontId = NULL,
+ apply_alignment = NULL,
+ apply_border = NULL,
+ apply_fill = NULL,
+ apply_font = NULL,
+ apply_number_format = NULL,
+ apply_protection = NULL,
+ border_id = NULL,
+ ext_lst = NULL,
+ fill_id = NULL,
+ font_id = NULL,
hidden = NULL,
horizontal = NULL,
indent = NULL,
- justifyLastLine = NULL,
+ justify_last_line = NULL,
locked = NULL,
- numFmtId = NULL,
- pivotButton = NULL,
- quotePrefix = NULL,
- readingOrder = NULL,
- relativeIndent = NULL,
- shrinkToFit = NULL,
- textRotation = NULL,
+ num_fmt_id = NULL,
+ pivot_button = NULL,
+ quote_prefix = NULL,
+ reading_order = NULL,
+ relative_indent = NULL,
+ shrink_to_fit = NULL,
+ text_rotation = NULL,
vertical = NULL,
- wrapText = NULL,
- xfId = NULL
+ wrap_text = NULL,
+ xf_id = NULL,
+ ...
)}\if{html}{\out{
}}
}
@@ -2801,25 +2804,25 @@ provide simple cell style format function
\item{\code{dims}}{the cell range}
-\item{\code{applyAlignment}}{logical apply alignment}
+\item{\code{apply_alignment}}{logical apply alignment}
-\item{\code{applyBorder}}{logical apply border}
+\item{\code{apply_border}}{logical apply border}
-\item{\code{applyFill}}{logical apply fill}
+\item{\code{apply_fill}}{logical apply fill}
-\item{\code{applyFont}}{logical apply font}
+\item{\code{apply_font}}{logical apply font}
-\item{\code{applyNumberFormat}}{logical apply number format}
+\item{\code{apply_number_format}}{logical apply number format}
-\item{\code{applyProtection}}{logical apply protection}
+\item{\code{apply_protection}}{logical apply protection}
-\item{\code{borderId}}{border ID to apply}
+\item{\code{border_id}}{border ID to apply}
-\item{\code{extLst}}{extension list something like \verb{...}}
+\item{\code{ext_lst}}{extension list something like \verb{...}}
-\item{\code{fillId}}{fill ID to apply}
+\item{\code{fill_id}}{fill ID to apply}
-\item{\code{fontId}}{font ID to apply}
+\item{\code{font_id}}{font ID to apply}
\item{\code{hidden}}{logical cell is hidden}
@@ -2827,29 +2830,31 @@ provide simple cell style format function
\item{\code{indent}}{logical indent content}
-\item{\code{justifyLastLine}}{logical justify last line}
+\item{\code{justify_last_line}}{logical justify last line}
\item{\code{locked}}{logical cell is locked}
-\item{\code{numFmtId}}{number format ID to apply}
+\item{\code{num_fmt_id}}{number format ID to apply}
-\item{\code{pivotButton}}{unknown}
+\item{\code{pivot_button}}{unknown}
-\item{\code{quotePrefix}}{unknown}
+\item{\code{quote_prefix}}{unknown}
-\item{\code{readingOrder}}{reading order left to right}
+\item{\code{reading_order}}{reading order left to right}
-\item{\code{relativeIndent}}{relative indentation}
+\item{\code{relative_indent}}{relative indentation}
-\item{\code{shrinkToFit}}{logical shrink to fit}
+\item{\code{shrink_to_fit}}{logical shrink to fit}
-\item{\code{textRotation}}{degrees of text rotation}
+\item{\code{text_rotation}}{degrees of text rotation}
\item{\code{vertical}}{vertical alignment of content ('top', 'center', 'bottom')}
-\item{\code{wrapText}}{wrap text in cell}
+\item{\code{wrap_text}}{wrap text in cell}
+
+\item{\code{xf_id}}{xf ID to apply}
-\item{\code{xfId}}{xf ID to apply}
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{}}
}
@@ -2957,12 +2962,12 @@ These styles are used with conditional formatting and custom table styles
font_name = NULL,
font_size = NULL,
font_color = NULL,
- numFmt = NULL,
+ num_fmt = NULL,
border = NULL,
border_color = wb_color(getOption("openxlsx2.borderColor", "black")),
border_style = getOption("openxlsx2.borderStyle", "thin"),
- bgFill = NULL,
- gradientFill = NULL,
+ bg_fill = NULL,
+ gradient_fill = NULL,
text_bold = NULL,
text_italic = NULL,
text_underline = NULL,
@@ -2981,7 +2986,7 @@ These styles are used with conditional formatting and custom table styles
\item{\code{font_color}}{the font color (a \code{wb_color()} object)}
-\item{\code{numFmt}}{the number format}
+\item{\code{num_fmt}}{the number format}
\item{\code{border}}{logical if borders are applied}
@@ -2989,9 +2994,9 @@ These styles are used with conditional formatting and custom table styles
\item{\code{border_style}}{the border style}
-\item{\code{bgFill}}{any background fill}
+\item{\code{bg_fill}}{any background fill}
-\item{\code{gradientFill}}{any gradient fill}
+\item{\code{gradient_fill}}{any gradient fill}
\item{\code{text_bold}}{logical if text is bold}
@@ -3054,15 +3059,16 @@ Ignore error on worksheet
\if{html}{\out{}}\preformatted{wbWorkbook$add_ignore_error(
sheet = current_sheet(),
dims = "A1",
- calculatedColumn = FALSE,
- emptyCellReference = FALSE,
- evalError = FALSE,
+ calculated_column = FALSE,
+ empty_cell_reference = FALSE,
+ eval_error = FALSE,
formula = FALSE,
- formulaRange = FALSE,
- listDataValidation = FALSE,
- numberStoredAsText = FALSE,
- twoDigitTextYear = FALSE,
- unlockedFormula = FALSE
+ formula_range = FALSE,
+ list_data_validation = FALSE,
+ number_stored_as_text = FALSE,
+ two_digit_text_year = FALSE,
+ unlocked_formula = FALSE,
+ ...
)}\if{html}{\out{
}}
}
@@ -3073,23 +3079,25 @@ Ignore error on worksheet
\item{\code{dims}}{dims}
-\item{\code{calculatedColumn}}{calculatedColumn}
+\item{\code{calculated_column}}{calculatedColumn}
-\item{\code{emptyCellReference}}{emptyCellReference}
+\item{\code{empty_cell_reference}}{emptyCellReference}
-\item{\code{evalError}}{evalError}
+\item{\code{eval_error}}{evalError}
\item{\code{formula}}{formula}
-\item{\code{formulaRange}}{formulaRange}
+\item{\code{formula_range}}{formulaRange}
-\item{\code{listDataValidation}}{listDataValidation}
+\item{\code{list_data_validation}}{listDataValidation}
-\item{\code{numberStoredAsText}}{numberStoredAsText}
+\item{\code{number_stored_as_text}}{numberStoredAsText}
-\item{\code{twoDigitTextYear}}{twoDigitTextYear}
+\item{\code{two_digit_text_year}}{twoDigitTextYear}
-\item{\code{unlockedFormula}}{unlockedFormula}
+\item{\code{unlocked_formula}}{unlockedFormula}
+
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{}}
}
@@ -3102,25 +3110,26 @@ add sheetview
\subsection{Usage}{
\if{html}{\out{}}\preformatted{wbWorkbook$set_sheetview(
sheet = current_sheet(),
- colorId = NULL,
- defaultGridColor = NULL,
- rightToLeft = NULL,
- showFormulas = NULL,
- showGridLines = NULL,
- showOutlineSymbols = NULL,
- showRowColHeaders = NULL,
- showRuler = NULL,
- showWhiteSpace = NULL,
- showZeros = NULL,
- tabSelected = NULL,
- topLeftCell = NULL,
+ color_id = NULL,
+ default_grid_color = NULL,
+ right_to_left = NULL,
+ show_formulas = NULL,
+ show_grid_lines = NULL,
+ show_outline_symbols = NULL,
+ show_row_col_headers = NULL,
+ show_ruler = NULL,
+ show_white_space = NULL,
+ show_zeros = NULL,
+ tab_selected = NULL,
+ top_left_cell = NULL,
view = NULL,
- windowProtection = NULL,
- workbookViewId = NULL,
- zoomScale = NULL,
- zoomScaleNormal = NULL,
- zoomScalePageLayoutView = NULL,
- zoomScaleSheetLayoutView = NULL
+ window_protection = NULL,
+ workbook_view_id = NULL,
+ zoom_scale = NULL,
+ zoom_scale_normal = NULL,
+ zoom_scale_page_layout_view = NULL,
+ zoom_scale_sheet_layout_view = NULL,
+ ...
)}\if{html}{\out{
}}
}
@@ -3129,43 +3138,37 @@ add sheetview
\describe{
\item{\code{sheet}}{sheet}
-\item{\code{colorId}}{colorId}
-
-\item{\code{defaultGridColor}}{defaultGridColor}
-
-\item{\code{rightToLeft}}{rightToLeft}
-
-\item{\code{showFormulas}}{showFormulas}
+\item{\code{color_id, default_grid_color}}{Integer: A color, default is 64}
-\item{\code{showGridLines}}{showGridLines}
+\item{\code{right_to_left}}{Logical: if TRUE column ordering is right to left}
-\item{\code{showOutlineSymbols}}{showOutlineSymbols}
+\item{\code{show_formulas}}{Logical: if TRUE cell formulas are shown}
-\item{\code{showRowColHeaders}}{showRowColHeaders}
+\item{\code{show_grid_lines}}{Logical: if TRUE the worksheet grid is shown}
-\item{\code{showRuler}}{showRuler}
+\item{\code{show_outline_symbols}}{Logical: if TRUE outline symbols are shown}
-\item{\code{showWhiteSpace}}{showWhiteSpace}
+\item{\code{show_row_col_headers}}{Logical: if TRUE row and column headers are shown}
-\item{\code{showZeros}}{showZeros}
+\item{\code{show_ruler}}{Logical: if TRUE a ruler is shown in page layout view}
-\item{\code{tabSelected}}{tabSelected}
+\item{\code{show_white_space}}{Logical: if TRUE margins are shown in page layout view}
-\item{\code{topLeftCell}}{topLeftCell}
+\item{\code{show_zeros}}{Logical: if FALSE cells containing zero are shown blank if !showFormulas}
-\item{\code{view}}{view}
+\item{\code{tab_selected}}{Integer: zero vector indicating the selected tab}
-\item{\code{windowProtection}}{windowProtection}
+\item{\code{top_left_cell}}{Cell: the cell shown in the top left corner / or top right with rightToLeft}
-\item{\code{workbookViewId}}{workbookViewId}
+\item{\code{view}}{View: "normal", "pageBreakPreview" or "pageLayout"}
-\item{\code{zoomScale}}{zoomScale}
+\item{\code{window_protection}}{Logical: if TRUE the panes are protected}
-\item{\code{zoomScaleNormal}}{zoomScaleNormal}
+\item{\code{workbook_view_id}}{integer: Pointing to some other view inside the workbook}
-\item{\code{zoomScalePageLayoutView}}{zoomScalePageLayoutView}
+\item{\code{zoom_scale, zoom_scale_normal, zoom_scale_page_layout_view, zoom_scale_sheet_layout_view}}{Integer: the zoom scale should be between 10 and 400. These are values for current, normal etc.}
-\item{\code{zoomScaleSheetLayoutView}}{zoomScaleSheetLayoutView}
+\item{\code{...}}{additional arguments}
}
\if{html}{\out{}}
}
diff --git a/man/wbWorksheet.Rd b/man/wbWorksheet.Rd
deleted file mode 100644
index 74914bced..000000000
--- a/man/wbWorksheet.Rd
+++ /dev/null
@@ -1,555 +0,0 @@
-% Generated by roxygen2: do not edit by hand
-% Please edit documentation in R/class-worksheet.R
-\name{wbWorksheet}
-\alias{wbWorksheet}
-\title{R6 class for a Workbook Worksheet}
-\value{
-The \code{wbWorksheet} object
-
-The \code{wbWorksheet} object
-}
-\description{
-R6 class for a Workbook Worksheet
-
-R6 class for a Workbook Worksheet
-}
-\details{
-A Worksheet
-}
-\section{Public fields}{
-\if{html}{\out{}}
-\describe{
-\item{\code{sheetPr}}{sheetPr}
-
-\item{\code{dimension}}{dimension}
-
-\item{\code{sheetViews}}{sheetViews}
-
-\item{\code{sheetFormatPr}}{sheetFormatPr}
-
-\item{\code{sheet_data}}{sheet_data}
-
-\item{\code{cols_attr}}{cols_attr}
-
-\item{\code{autoFilter}}{autoFilter}
-
-\item{\code{mergeCells}}{mergeCells}
-
-\item{\code{conditionalFormatting}}{conditionalFormatting}
-
-\item{\code{dataValidations}}{dataValidations}
-
-\item{\code{freezePane}}{freezePane}
-
-\item{\code{hyperlinks}}{hyperlinks}
-
-\item{\code{sheetProtection}}{sheetProtection}
-
-\item{\code{pageMargins}}{pageMargins}
-
-\item{\code{pageSetup}}{pageSetup}
-
-\item{\code{headerFooter}}{headerFooter}
-
-\item{\code{rowBreaks}}{rowBreaks}
-
-\item{\code{colBreaks}}{colBreaks}
-
-\item{\code{drawing}}{drawing}
-
-\item{\code{legacyDrawing}}{legacyDrawing}
-
-\item{\code{legacyDrawingHF}}{legacyDrawingHF}
-
-\item{\code{oleObjects}}{oleObjects}
-
-\item{\code{tableParts}}{tableParts}
-
-\item{\code{extLst}}{extLst}
-
-\item{\code{cellWatches}}{cellWatches}
-
-\item{\code{controls}}{controls}
-
-\item{\code{customProperties}}{customProperties}
-
-\item{\code{customSheetViews}}{customSheetViews}
-
-\item{\code{dataConsolidate}}{dataConsolidate}
-
-\item{\code{drawingHF}}{drawingHF}
-
-\item{\code{relships}}{relships}
-
-\item{\code{ignoredErrors}}{ignoredErrors}
-
-\item{\code{phoneticPr}}{phoneticPr}
-
-\item{\code{picture}}{picture}
-
-\item{\code{printOptions}}{printOptions}
-
-\item{\code{protectedRanges}}{protectedRanges}
-
-\item{\code{scenarios}}{scenarios}
-
-\item{\code{sheetCalcPr}}{sheetCalcPr}
-
-\item{\code{smartTags}}{smartTags}
-
-\item{\code{sortState}}{sortState}
-
-\item{\code{webPublishItems}}{webPublishItems}
-}
-\if{html}{\out{
}}
-}
-\section{Methods}{
-\subsection{Public methods}{
-\itemize{
-\item \href{#method-wbWorksheet-new}{\code{wbWorksheet$new()}}
-\item \href{#method-wbWorksheet-get_prior_sheet_data}{\code{wbWorksheet$get_prior_sheet_data()}}
-\item \href{#method-wbWorksheet-get_post_sheet_data}{\code{wbWorksheet$get_post_sheet_data()}}
-\item \href{#method-wbWorksheet-unfold_cols}{\code{wbWorksheet$unfold_cols()}}
-\item \href{#method-wbWorksheet-fold_cols}{\code{wbWorksheet$fold_cols()}}
-\item \href{#method-wbWorksheet-merge_cells}{\code{wbWorksheet$merge_cells()}}
-\item \href{#method-wbWorksheet-unmerge_cells}{\code{wbWorksheet$unmerge_cells()}}
-\item \href{#method-wbWorksheet-clean_sheet}{\code{wbWorksheet$clean_sheet()}}
-\item \href{#method-wbWorksheet-add_page_break}{\code{wbWorksheet$add_page_break()}}
-\item \href{#method-wbWorksheet-set_print_options}{\code{wbWorksheet$set_print_options()}}
-\item \href{#method-wbWorksheet-append}{\code{wbWorksheet$append()}}
-\item \href{#method-wbWorksheet-add_sparklines}{\code{wbWorksheet$add_sparklines()}}
-\item \href{#method-wbWorksheet-set_sheetview}{\code{wbWorksheet$set_sheetview()}}
-\item \href{#method-wbWorksheet-ignore_error}{\code{wbWorksheet$ignore_error()}}
-\item \href{#method-wbWorksheet-clone}{\code{wbWorksheet$clone()}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbWorksheet-new}{}}}
-\subsection{Method \code{new()}}{
-Creates a new \code{wbWorksheet} object
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorksheet$new(
- tabColor = NULL,
- oddHeader = NULL,
- oddFooter = NULL,
- evenHeader = NULL,
- evenFooter = NULL,
- firstHeader = NULL,
- firstFooter = NULL,
- paperSize = 9,
- orientation = "portrait",
- hdpi = 300,
- vdpi = 300,
- printGridLines = FALSE
-)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{tabColor}}{tabColor}
-
-\item{\code{oddHeader}}{oddHeader}
-
-\item{\code{oddFooter}}{oddFooter}
-
-\item{\code{evenHeader}}{evenHeader}
-
-\item{\code{evenFooter}}{evenFooter}
-
-\item{\code{firstHeader}}{firstHeader}
-
-\item{\code{firstFooter}}{firstFooter}
-
-\item{\code{paperSize}}{paperSize}
-
-\item{\code{orientation}}{orientation}
-
-\item{\code{hdpi}}{hdpi}
-
-\item{\code{vdpi}}{vdpi}
-
-\item{\code{printGridLines}}{printGridLines}
-}
-\if{html}{\out{
}}
-}
-\subsection{Returns}{
-a \code{wbWorksheet} object
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbWorksheet-get_prior_sheet_data}{}}}
-\subsection{Method \code{get_prior_sheet_data()}}{
-Get prior sheet data
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorksheet$get_prior_sheet_data()}\if{html}{\out{
}}
-}
-
-\subsection{Returns}{
-A character vector of xml
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbWorksheet-get_post_sheet_data}{}}}
-\subsection{Method \code{get_post_sheet_data()}}{
-Get post sheet data
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorksheet$get_post_sheet_data()}\if{html}{\out{
}}
-}
-
-\subsection{Returns}{
-A character vector of xml
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbWorksheet-unfold_cols}{}}}
-\subsection{Method \code{unfold_cols()}}{
-unfold \verb{} node to dataframe. \verb{} are compressed.
-Only columns with attributes are written to the file. This function
-unfolds them so that each cell beginning with the "A" to the last one
-found in cc gets a value.
-TODO might extend this to match either largest cc or largest col. Could
-be that "Z" is formatted, but the last value is written to "Y".
-TODO might replace the xml nodes with the data frame?
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorksheet$unfold_cols()}\if{html}{\out{
}}
-}
-
-\subsection{Returns}{
-The column data frame
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbWorksheet-fold_cols}{}}}
-\subsection{Method \code{fold_cols()}}{
-fold the column dataframe back into a node.
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorksheet$fold_cols(col_df)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{col_df}}{the column data frame}
-}
-\if{html}{\out{
}}
-}
-\subsection{Returns}{
-The \code{wbWorksheetObject}, invisibly
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbWorksheet-merge_cells}{}}}
-\subsection{Method \code{merge_cells()}}{
-Set cell merging for a sheet
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorksheet$merge_cells(rows = NULL, cols = NULL)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{rows, cols}}{Row and column specifications.}
-}
-\if{html}{\out{
}}
-}
-\subsection{Returns}{
-The \code{wbWorkbook} object, invisibly
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbWorksheet-unmerge_cells}{}}}
-\subsection{Method \code{unmerge_cells()}}{
-Removes cell merging for a sheet
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorksheet$unmerge_cells(rows = NULL, cols = NULL)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{rows, cols}}{Row and column specifications.}
-}
-\if{html}{\out{
}}
-}
-\subsection{Returns}{
-The \code{wbWorkbook} object, invisibly
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbWorksheet-clean_sheet}{}}}
-\subsection{Method \code{clean_sheet()}}{
-clean sheet (remove all values)
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorksheet$clean_sheet(
- dims = NULL,
- numbers = TRUE,
- characters = TRUE,
- styles = TRUE,
- merged_cells = TRUE
-)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{dims}}{dimensions}
-
-\item{\code{numbers}}{remove all numbers}
-
-\item{\code{characters}}{remove all characters}
-
-\item{\code{styles}}{remove all styles}
-
-\item{\code{merged_cells}}{remove all merged_cells}
-}
-\if{html}{\out{
}}
-}
-\subsection{Returns}{
-The \code{wbWorksheetObject}, invisibly
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbWorksheet-add_page_break}{}}}
-\subsection{Method \code{add_page_break()}}{
-add page break
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorksheet$add_page_break(row = NULL, col = NULL)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{row}}{row}
-
-\item{\code{col}}{col}
-}
-\if{html}{\out{
}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbWorksheet-set_print_options}{}}}
-\subsection{Method \code{set_print_options()}}{
-add print options
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorksheet$set_print_options(
- gridLines = NULL,
- gridLinesSet = NULL,
- headings = NULL,
- horizontalCentered = NULL,
- verticalCentered = NULL
-)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{gridLines}}{gridLines}
-
-\item{\code{gridLinesSet}}{gridLinesSet}
-
-\item{\code{headings}}{If TRUE prints row and column headings}
-
-\item{\code{horizontalCentered}}{If TRUE the page is horizontally centered}
-
-\item{\code{verticalCentered}}{If TRUE the page is vertically centered}
-}
-\if{html}{\out{
}}
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbWorksheet-append}{}}}
-\subsection{Method \code{append()}}{
-append a field. Intended for internal use only. Not
-guaranteed to remain a public method.
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorksheet$append(field, value = NULL)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{field}}{a field name}
-
-\item{\code{value}}{a new value}
-}
-\if{html}{\out{
}}
-}
-\subsection{Returns}{
-The \code{wbWorksheetObject}, invisibly
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbWorksheet-add_sparklines}{}}}
-\subsection{Method \code{add_sparklines()}}{
-add sparkline
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorksheet$add_sparklines(sparklines)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{sparklines}}{sparkline created by \code{create_sparkline()}}
-}
-\if{html}{\out{
}}
-}
-\subsection{Returns}{
-The \code{wbWorksheetObject}, invisibly
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbWorksheet-set_sheetview}{}}}
-\subsection{Method \code{set_sheetview()}}{
-add sheetview
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorksheet$set_sheetview(
- colorId = NULL,
- defaultGridColor = NULL,
- rightToLeft = NULL,
- showFormulas = NULL,
- showGridLines = NULL,
- showOutlineSymbols = NULL,
- showRowColHeaders = NULL,
- showRuler = NULL,
- showWhiteSpace = NULL,
- showZeros = NULL,
- tabSelected = NULL,
- topLeftCell = NULL,
- view = NULL,
- windowProtection = NULL,
- workbookViewId = NULL,
- zoomScale = NULL,
- zoomScaleNormal = NULL,
- zoomScalePageLayoutView = NULL,
- zoomScaleSheetLayoutView = NULL
-)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{colorId}}{colorId}
-
-\item{\code{defaultGridColor}}{defaultGridColor}
-
-\item{\code{rightToLeft}}{rightToLeft}
-
-\item{\code{showFormulas}}{showFormulas}
-
-\item{\code{showGridLines}}{showGridLines}
-
-\item{\code{showOutlineSymbols}}{showOutlineSymbols}
-
-\item{\code{showRowColHeaders}}{showRowColHeaders}
-
-\item{\code{showRuler}}{showRuler}
-
-\item{\code{showWhiteSpace}}{showWhiteSpace}
-
-\item{\code{showZeros}}{showZeros}
-
-\item{\code{tabSelected}}{tabSelected}
-
-\item{\code{topLeftCell}}{topLeftCell}
-
-\item{\code{view}}{view}
-
-\item{\code{windowProtection}}{windowProtection}
-
-\item{\code{workbookViewId}}{workbookViewId}
-
-\item{\code{zoomScale}}{zoomScale}
-
-\item{\code{zoomScaleNormal}}{zoomScaleNormal}
-
-\item{\code{zoomScalePageLayoutView}}{zoomScalePageLayoutView}
-
-\item{\code{zoomScaleSheetLayoutView}}{zoomScaleSheetLayoutView}
-}
-\if{html}{\out{
}}
-}
-\subsection{Returns}{
-The \code{wbWorksheetObject}, invisibly
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbWorksheet-ignore_error}{}}}
-\subsection{Method \code{ignore_error()}}{
-Ignore error on worksheet
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorksheet$ignore_error(
- dims = "A1",
- calculatedColumn = FALSE,
- emptyCellReference = FALSE,
- evalError = FALSE,
- formula = FALSE,
- formulaRange = FALSE,
- listDataValidation = FALSE,
- numberStoredAsText = FALSE,
- twoDigitTextYear = FALSE,
- unlockedFormula = FALSE
-)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{dims}}{dims}
-
-\item{\code{calculatedColumn}}{calculatedColumn}
-
-\item{\code{emptyCellReference}}{emptyCellReference}
-
-\item{\code{evalError}}{evalError}
-
-\item{\code{formula}}{formula}
-
-\item{\code{formulaRange}}{formulaRange}
-
-\item{\code{listDataValidation}}{listDataValidation}
-
-\item{\code{numberStoredAsText}}{numberStoredAsText}
-
-\item{\code{twoDigitTextYear}}{twoDigitTextYear}
-
-\item{\code{unlockedFormula}}{unlockedFormula}
-}
-\if{html}{\out{
}}
-}
-\subsection{Returns}{
-The \code{wbWorksheetObject}, invisibly
-}
-}
-\if{html}{\out{
}}
-\if{html}{\out{}}
-\if{latex}{\out{\hypertarget{method-wbWorksheet-clone}{}}}
-\subsection{Method \code{clone()}}{
-The objects of this class are cloneable with this method.
-\subsection{Usage}{
-\if{html}{\out{}}\preformatted{wbWorksheet$clone(deep = FALSE)}\if{html}{\out{
}}
-}
-
-\subsection{Arguments}{
-\if{html}{\out{}}
-\describe{
-\item{\code{deep}}{Whether to make a deep clone.}
-}
-\if{html}{\out{
}}
-}
-}
-}
diff --git a/man/wb_add_cell_style.Rd b/man/wb_add_cell_style.Rd
index 8fe4e5cce..4e7f74c4b 100644
--- a/man/wb_add_cell_style.Rd
+++ b/man/wb_add_cell_style.Rd
@@ -8,31 +8,32 @@ wb_add_cell_style(
wb,
sheet = current_sheet(),
dims = "A1",
- applyAlignment = NULL,
- applyBorder = NULL,
- applyFill = NULL,
- applyFont = NULL,
- applyNumberFormat = NULL,
- applyProtection = NULL,
- borderId = NULL,
- extLst = NULL,
- fillId = NULL,
- fontId = NULL,
+ apply_alignment = NULL,
+ apply_border = NULL,
+ apply_fill = NULL,
+ apply_font = NULL,
+ apply_number_format = NULL,
+ apply_protection = NULL,
+ border_id = NULL,
+ ext_lst = NULL,
+ fill_id = NULL,
+ font_id = NULL,
hidden = NULL,
horizontal = NULL,
indent = NULL,
- justifyLastLine = NULL,
+ justify_last_line = NULL,
locked = NULL,
- numFmtId = NULL,
- pivotButton = NULL,
- quotePrefix = NULL,
- readingOrder = NULL,
- relativeIndent = NULL,
- shrinkToFit = NULL,
- textRotation = NULL,
+ num_fmt_id = NULL,
+ pivot_button = NULL,
+ quote_prefix = NULL,
+ reading_order = NULL,
+ relative_indent = NULL,
+ shrink_to_fit = NULL,
+ text_rotation = NULL,
vertical = NULL,
- wrapText = NULL,
- xfId = NULL
+ wrap_text = NULL,
+ xf_id = NULL,
+ ...
)
}
\arguments{
@@ -42,25 +43,25 @@ wb_add_cell_style(
\item{dims}{the cell range}
-\item{applyAlignment}{logical apply alignment}
+\item{apply_alignment}{logical apply alignment}
-\item{applyBorder}{logical apply border}
+\item{apply_border}{logical apply border}
-\item{applyFill}{logical apply fill}
+\item{apply_fill}{logical apply fill}
-\item{applyFont}{logical apply font}
+\item{apply_font}{logical apply font}
-\item{applyNumberFormat}{logical apply number format}
+\item{apply_number_format}{logical apply number format}
-\item{applyProtection}{logical apply protection}
+\item{apply_protection}{logical apply protection}
-\item{borderId}{border ID to apply}
+\item{border_id}{border ID to apply}
-\item{extLst}{extension list something like \verb{...}}
+\item{ext_lst}{extension list something like \verb{...}}
-\item{fillId}{fill ID to apply}
+\item{fill_id}{fill ID to apply}
-\item{fontId}{font ID to apply}
+\item{font_id}{font ID to apply}
\item{hidden}{logical cell is hidden}
@@ -68,29 +69,31 @@ wb_add_cell_style(
\item{indent}{logical indent content}
-\item{justifyLastLine}{logical justify last line}
+\item{justify_last_line}{logical justify last line}
\item{locked}{logical cell is locked}
-\item{numFmtId}{number format ID to apply}
+\item{num_fmt_id}{number format ID to apply}
-\item{pivotButton}{unknown}
+\item{pivot_button}{unknown}
-\item{quotePrefix}{unknown}
+\item{quote_prefix}{unknown}
-\item{readingOrder}{reading order left to right}
+\item{reading_order}{reading order left to right}
-\item{relativeIndent}{relative indentation}
+\item{relative_indent}{relative indentation}
-\item{shrinkToFit}{logical shrink to fit}
+\item{shrink_to_fit}{logical shrink to fit}
-\item{textRotation}{degrees of text rotation}
+\item{text_rotation}{degrees of text rotation}
\item{vertical}{vertical alignment of content ('top', 'center', 'bottom')}
-\item{wrapText}{wrap text in cell}
+\item{wrap_text}{wrap text in cell}
-\item{xfId}{xf ID to apply}
+\item{xf_id}{xf ID to apply}
+
+\item{...}{additional arguments}
}
\value{
The \code{wbWorksheetObject}, invisibly
diff --git a/man/wb_add_chart_xml.Rd b/man/wb_add_chart_xml.Rd
index 15785c522..51e66432c 100644
--- a/man/wb_add_chart_xml.Rd
+++ b/man/wb_add_chart_xml.Rd
@@ -7,10 +7,11 @@
wb_add_chart_xml(
wb,
sheet = current_sheet(),
- xml,
dims = NULL,
- colOffset = 0,
- rowOffset = 0
+ xml,
+ col_offset = 0,
+ row_offset = 0,
+ ...
)
}
\arguments{
@@ -18,12 +19,17 @@ wb_add_chart_xml(
\item{sheet}{the sheet on which the graph will appear}
+\item{dims}{the dimensions where the sheet will appear}
+
\item{xml}{chart xml}
-\item{dims}{the dimensions where the sheet will appear}
+\item{col_offset, row_offset}{positioning}
-\item{colOffset, rowOffset}{startCol and startRow}
+\item{...}{additional arguments}
}
\description{
add a chart xml to a workbook
}
+\seealso{
+\code{\link[=wb_add_drawing]{wb_add_drawing()}} \code{\link[=wb_add_image]{wb_add_image()}} \code{\link[=wb_add_mschart]{wb_add_mschart()}} \code{\link[=wb_add_plot]{wb_add_plot()}}
+}
diff --git a/man/wb_add_chartsheet.Rd b/man/wb_add_chartsheet.Rd
index fcc8baaa1..37939f2dc 100644
--- a/man/wb_add_chartsheet.Rd
+++ b/man/wb_add_chartsheet.Rd
@@ -7,7 +7,7 @@
wb_add_chartsheet(
wb,
sheet = next_sheet(),
- tabColor = NULL,
+ tab_color = NULL,
zoom = 100,
visible = c("true", "false", "hidden", "visible", "veryhidden"),
...
@@ -18,7 +18,7 @@ wb_add_chartsheet(
\item{sheet}{A name for the new worksheet}
-\item{tabColor}{Color of the worksheet tab. A valid color (belonging to
+\item{tab_color}{Color of the worksheet tab. A valid color (belonging to
colors()) or a valid hex color beginning with "#"}
\item{zoom}{A numeric between 10 and 400. Worksheet zoom level as a
diff --git a/man/wb_add_data_table.Rd b/man/wb_add_data_table.Rd
index 91632f492..97dc8e980 100644
--- a/man/wb_add_data_table.Rd
+++ b/man/wb_add_data_table.Rd
@@ -8,23 +8,24 @@ wb_add_data_table(
wb,
sheet = current_sheet(),
x,
- startCol = 1,
- startRow = 1,
- dims = rowcol_to_dims(startRow, startCol),
- colNames = TRUE,
- rowNames = FALSE,
- tableStyle = "TableStyleLight9",
- tableName = NULL,
- withFilter = TRUE,
+ dims = rowcol_to_dims(start_row, start_col),
+ start_col = 1,
+ start_row = 1,
+ col_names = TRUE,
+ row_names = FALSE,
+ table_style = "TableStyleLight9",
+ table_name = NULL,
+ with_filter = TRUE,
sep = ", ",
- firstColumn = FALSE,
- lastColumn = FALSE,
- bandedRows = TRUE,
- bandedCols = FALSE,
- applyCellStyle = TRUE,
- removeCellStyle = FALSE,
+ first_column = FALSE,
+ last_column = FALSE,
+ banded_rows = TRUE,
+ banded_cols = FALSE,
+ apply_cell_style = TRUE,
+ remove_cell_style = FALSE,
na.strings = na_strings(),
- inline_strings = TRUE
+ inline_strings = TRUE,
+ ...
)
}
\arguments{
@@ -34,22 +35,22 @@ wb_add_data_table(
\item{x}{A dataframe.}
-\item{startCol}{A vector specifying the starting column to write df}
+\item{dims}{Spreadsheet dimensions that will determine startCol and startRow: "A1", "A1:B2", "A:B"}
-\item{startRow}{A vector specifying the starting row to write df}
+\item{start_col}{A vector specifying the starting column to write df}
-\item{dims}{Spreadsheet dimensions that will determine startCol and startRow: "A1", "A1:B2", "A:B"}
+\item{start_row}{A vector specifying the starting row to write df}
-\item{colNames}{If \code{TRUE}, column names of x are written.}
+\item{col_names}{If \code{TRUE}, column names of x are written.}
-\item{rowNames}{If \code{TRUE}, row names of x are written.}
+\item{row_names}{If \code{TRUE}, row names of x are written.}
-\item{tableStyle}{Any excel table style name or "none" (see "formatting"
+\item{table_style}{Any excel table style name or "none" (see "formatting"
vignette).}
-\item{tableName}{name of table in workbook. The table name must be unique.}
+\item{table_name}{name of table in workbook. The table name must be unique.}
-\item{withFilter}{If \code{TRUE}, columns with have filters in the first row.}
+\item{with_filter}{If \code{TRUE}, columns with have filters in the first row.}
\item{sep}{Only applies to list columns. The separator used to collapse list
columns to a character vector e.g. sapply(x$list_column, paste, collapse =
@@ -60,22 +61,24 @@ sep).
\if{html}{\figure{tableoptions.png}{options: width="40\%" alt="Figure: table_options.png"}}
\if{latex}{\figure{tableoptions.pdf}{options: width=7cm}}}
-\item{firstColumn}{logical. If TRUE, the first column is bold}
+\item{first_column}{logical. If TRUE, the first column is bold}
-\item{lastColumn}{logical. If TRUE, the last column is bold}
+\item{last_column}{logical. If TRUE, the last column is bold}
-\item{bandedRows}{logical. If TRUE, rows are color banded}
+\item{banded_rows}{logical. If TRUE, rows are color banded}
-\item{bandedCols}{logical. If TRUE, the columns are color banded}
+\item{banded_cols}{logical. If TRUE, the columns are color banded}
-\item{applyCellStyle}{Should we write cell styles to the workbook}
+\item{apply_cell_style}{Should we write cell styles to the workbook}
-\item{removeCellStyle}{keep the cell style?}
+\item{remove_cell_style}{keep the cell style?}
\item{na.strings}{Value used for replacing \code{NA} values from \code{x}. Default
\code{na_strings()} uses the special \verb{#N/A} value within the workbook.}
\item{inline_strings}{write characters as inline strings}
+
+\item{...}{additional arguments}
}
\description{
Add data to a worksheet and format as an Excel table
diff --git a/man/wb_add_data_validation.Rd b/man/wb_add_data_validation.Rd
index 490c43b10..ed301ee87 100644
--- a/man/wb_add_data_validation.Rd
+++ b/man/wb_add_data_validation.Rd
@@ -7,19 +7,19 @@
wb_add_data_validation(
wb,
sheet = current_sheet(),
- cols,
- rows,
+ dims = "A1",
type,
operator,
value,
- allowBlank = TRUE,
- showInputMsg = TRUE,
- showErrorMsg = TRUE,
- errorStyle = NULL,
- errorTitle = NULL,
+ allow_blank = TRUE,
+ show_input_msg = TRUE,
+ show_error_msg = TRUE,
+ error_style = NULL,
+ error_title = NULL,
error = NULL,
- promptTitle = NULL,
- prompt = NULL
+ prompt_title = NULL,
+ prompt = NULL,
+ ...
)
}
\arguments{
@@ -27,9 +27,7 @@ wb_add_data_validation(
\item{sheet}{A name or index of a worksheet}
-\item{cols}{Contiguous columns to apply conditional formatting to}
-
-\item{rows}{Contiguous rows to apply conditional formatting to}
+\item{dims}{A cell dimension ("A1" or "A1:B2")}
\item{type}{One of 'whole', 'decimal', 'date', 'time', 'textLength', 'list' (see examples)}
@@ -38,21 +36,23 @@ wb_add_data_validation(
\item{value}{a vector of length 1 or 2 depending on operator (see examples)}
-\item{allowBlank}{logical}
+\item{allow_blank}{logical}
-\item{showInputMsg}{logical}
+\item{show_input_msg}{logical}
-\item{showErrorMsg}{logical}
+\item{show_error_msg}{logical}
-\item{errorStyle}{The icon shown and the options how to deal with such inputs. Default "stop" (cancel), else "information" (prompt popup) or "warning" (prompt accept or change input)}
+\item{error_style}{The icon shown and the options how to deal with such inputs. Default "stop" (cancel), else "information" (prompt popup) or "warning" (prompt accept or change input)}
-\item{errorTitle}{The error title}
+\item{error_title}{The error title}
\item{error}{The error text}
-\item{promptTitle}{The prompt title}
+\item{prompt_title}{The prompt title}
\item{prompt}{The prompt text}
+
+\item{...}{additional arguments}
}
\description{
Add Excel data validation to cells
@@ -64,11 +64,11 @@ wb$add_worksheet("Sheet 2")
wb$add_data_table(1, x = iris[1:30, ])
wb$add_data_validation(1,
- col = 1:3, rows = 2:31, type = "whole",
+ dims = "A2:C31", type = "whole",
operator = "between", value = c(1, 9)
)
wb$add_data_validation(1,
- col = 5, rows = 2:31, type = "textLength",
+ dims = "E2:E31", type = "textLength",
operator = "between", value = c(4, 6)
)
@@ -83,7 +83,7 @@ wb$add_data_validation(2,
operator = "greaterThanOrEqual", value = as.Date("2016-01-01")
)
wb$add_data_validation(2,
- col = 2, rows = 2:12, type = "time",
+ dims = "B2:B12", type = "time",
operator = "between", value = df$t[c(4, 8)]
)
@@ -99,5 +99,5 @@ wb$add_worksheet("Sheet 2")
wb$add_data_table(sheet = 1, x = iris[1:30, ])
wb$add_data(sheet = 2, x = sample(iris$Sepal.Length, 10))
-wb$add_data_validation(1, col = 1, rows = 2:31, type = "list", value = "'Sheet 2'!$A$1:$A$10")
+wb$add_data_validation(1, dims = "A2:A31", type = "list", value = "'Sheet 2'!$A$1:$A$10")
}
diff --git a/man/wb_add_drawing.Rd b/man/wb_add_drawing.Rd
index 3b6ba002a..9807de6b1 100644
--- a/man/wb_add_drawing.Rd
+++ b/man/wb_add_drawing.Rd
@@ -7,10 +7,11 @@
wb_add_drawing(
wb,
sheet = current_sheet(),
+ dims = "A1",
xml,
- dims = NULL,
- colOffset = 0,
- rowOffset = 0
+ col_offset = 0,
+ row_offset = 0,
+ ...
)
}
\arguments{
@@ -18,11 +19,13 @@ wb_add_drawing(
\item{sheet}{a sheet in the workbook}
+\item{dims}{the dimension where the drawing is added. Can be NULL}
+
\item{xml}{the drawing xml as character or file}
-\item{dims}{the dimension where the drawing is added. Can be NULL}
+\item{col_offset, row_offset}{offsets for column and row}
-\item{colOffset, rowOffset}{offsets for column and row}
+\item{...}{additional arguments}
}
\description{
add drawings to workbook
@@ -43,3 +46,6 @@ wb <- wb_workbook()$
add_drawing(xml = tmp, dims = NULL)
}
}
+\seealso{
+\code{\link[=wb_add_chart_xml]{wb_add_chart_xml()}} \code{\link[=wb_add_image]{wb_add_image()}} \code{\link[=wb_add_mschart]{wb_add_mschart()}} \code{\link[=wb_add_plot]{wb_add_plot()}}
+}
diff --git a/man/wb_add_dxfs_style.Rd b/man/wb_add_dxfs_style.Rd
index 539cf1ef5..70832f165 100644
--- a/man/wb_add_dxfs_style.Rd
+++ b/man/wb_add_dxfs_style.Rd
@@ -11,12 +11,12 @@ wb_add_dxfs_style(
font_name = NULL,
font_size = NULL,
font_color = NULL,
- numFmt = NULL,
+ num_fmt = NULL,
border = NULL,
border_color = wb_color(getOption("openxlsx2.borderColor", "black")),
border_style = getOption("openxlsx2.borderStyle", "thin"),
- bgFill = NULL,
- gradientFill = NULL,
+ bg_fill = NULL,
+ gradient_fill = NULL,
text_bold = NULL,
text_italic = NULL,
text_underline = NULL,
@@ -34,7 +34,7 @@ wb_add_dxfs_style(
\item{font_color}{the font color (a \code{wb_color()} object)}
-\item{numFmt}{the number format}
+\item{num_fmt}{the number format}
\item{border}{logical if borders are applied}
@@ -42,9 +42,9 @@ wb_add_dxfs_style(
\item{border_style}{the border style}
-\item{bgFill}{any background fill}
+\item{bg_fill}{any background fill}
-\item{gradientFill}{any gradient fill}
+\item{gradient_fill}{any gradient fill}
\item{text_bold}{logical if text is bold}
diff --git a/man/wb_add_font.Rd b/man/wb_add_font.Rd
index ab910b5a0..d92408429 100644
--- a/man/wb_add_font.Rd
+++ b/man/wb_add_font.Rd
@@ -22,7 +22,7 @@ wb_add_font(
family = "",
scheme = "",
shadow = "",
- vertAlign = "",
+ vert_align = "",
...
)
}
@@ -61,7 +61,7 @@ wb_add_font(
\item{shadow}{shadow}
-\item{vertAlign}{vertical alignment}
+\item{vert_align}{vertical alignment}
\item{...}{...}
}
diff --git a/man/wb_add_formula.Rd b/man/wb_add_formula.Rd
index a2baac28a..937c84679 100644
--- a/man/wb_add_formula.Rd
+++ b/man/wb_add_formula.Rd
@@ -8,13 +8,14 @@ wb_add_formula(
wb,
sheet = current_sheet(),
x,
- startCol = 1,
- startRow = 1,
- dims = rowcol_to_dims(startRow, startCol),
+ dims = rowcol_to_dims(start_row, start_col),
+ start_col = 1,
+ start_row = 1,
array = FALSE,
cm = FALSE,
- applyCellStyle = TRUE,
- removeCellStyle = FALSE
+ apply_cell_style = TRUE,
+ remove_cell_style = FALSE,
+ ...
)
}
\arguments{
@@ -24,19 +25,21 @@ wb_add_formula(
\item{x}{A character vector.}
-\item{startCol}{A vector specifying the starting column to write to.}
+\item{dims}{Spreadsheet dimensions that will determine startCol and startRow: "A1", "A1:B2", "A:B"}
-\item{startRow}{A vector specifying the starting row to write to.}
+\item{start_col}{A vector specifying the starting column to write to.}
-\item{dims}{Spreadsheet dimensions that will determine startCol and startRow: "A1", "A1:B2", "A:B"}
+\item{start_row}{A vector specifying the starting row to write to.}
\item{array}{A bool if the function written is of type array}
\item{cm}{A special kind of array function that hides the curly braces in the cell. Add this, if you see "@" inserted into your formulas}
-\item{applyCellStyle}{Should we write cell styles to the workbook}
+\item{apply_cell_style}{Should we write cell styles to the workbook}
+
+\item{remove_cell_style}{keep the cell style?,}
-\item{removeCellStyle}{keep the cell style?}
+\item{...}{additional arguments}
}
\description{
Add a character vector containing Excel formula to a worksheet.
diff --git a/man/wb_add_ignore_error.Rd b/man/wb_add_ignore_error.Rd
index 540d3ffdd..2ca40c513 100644
--- a/man/wb_add_ignore_error.Rd
+++ b/man/wb_add_ignore_error.Rd
@@ -8,15 +8,16 @@ wb_add_ignore_error(
wb,
sheet = current_sheet(),
dims = "A1",
- calculatedColumn = FALSE,
- emptyCellReference = FALSE,
- evalError = FALSE,
+ calculated_column = FALSE,
+ empty_cell_reference = FALSE,
+ eval_error = FALSE,
formula = FALSE,
- formulaRange = FALSE,
- listDataValidation = FALSE,
- numberStoredAsText = FALSE,
- twoDigitTextYear = FALSE,
- unlockedFormula = FALSE
+ formula_range = FALSE,
+ list_data_validation = FALSE,
+ number_stored_as_text = FALSE,
+ two_digit_text_year = FALSE,
+ unlocked_formula = FALSE,
+ ...
)
}
\arguments{
@@ -26,23 +27,25 @@ wb_add_ignore_error(
\item{dims}{dims}
-\item{calculatedColumn}{calculatedColumn}
+\item{calculated_column}{calculatedColumn}
-\item{emptyCellReference}{emptyCellReference}
+\item{empty_cell_reference}{emptyCellReference}
-\item{evalError}{evalError}
+\item{eval_error}{evalError}
\item{formula}{formula}
-\item{formulaRange}{formulaRange}
+\item{formula_range}{formulaRange}
-\item{listDataValidation}{listDataValidation}
+\item{list_data_validation}{listDataValidation}
-\item{numberStoredAsText}{numberStoredAsText}
+\item{number_stored_as_text}{numberStoredAsText}
-\item{twoDigitTextYear}{twoDigitTextYear}
+\item{two_digit_text_year}{twoDigitTextYear}
-\item{unlockedFormula}{unlockedFormula}
+\item{unlocked_formula}{unlockedFormula}
+
+\item{...}{additional arguments}
}
\description{
Ignore error on worksheet
diff --git a/man/wb_add_image.Rd b/man/wb_add_image.Rd
index 0f42c496a..adc2ea304 100644
--- a/man/wb_add_image.Rd
+++ b/man/wb_add_image.Rd
@@ -7,16 +7,15 @@
wb_add_image(
wb,
sheet = current_sheet(),
+ dims = "A1",
file,
width = 6,
height = 3,
- startRow = 1,
- startCol = 1,
- rowOffset = 0,
- colOffset = 0,
+ row_offset = 0,
+ col_offset = 0,
units = "in",
dpi = 300,
- dims = rowcol_to_dim(startRow, startCol)
+ ...
)
}
\arguments{
@@ -24,44 +23,38 @@ wb_add_image(
\item{sheet}{A name or index of a worksheet}
+\item{dims}{Dimensions where to plot. Default absolute anchor, single cell (eg. "A1") oneCellAnchor, cell range (eg. "A1:D4") twoCellAnchor}
+
\item{file}{An image file. Valid file types are:\code{ "jpeg"}, \code{"png"}, \code{"bmp"}}
\item{width}{Width of figure.}
\item{height}{Height of figure.}
-\item{startRow}{Row coordinate of upper left corner of the image}
-
-\item{startCol}{Column coordinate of upper left corner of the image}
-
-\item{rowOffset}{offset vector for one or two cell anchor within cell (row)}
+\item{row_offset}{offset vector for one or two cell anchor within cell (row)}
-\item{colOffset}{offset vector for one or two cell anchor within cell (column)}
+\item{col_offset}{offset vector for one or two cell anchor within cell (column)}
\item{units}{Units of width and height. Can be \code{"in"}, \code{"cm"} or \code{"px"}}
\item{dpi}{Image resolution used for conversion between units.}
-\item{dims}{Dimensions where to plot. Default absolute anchor, single cell (eg. "A1") oneCellAnchor, cell range (eg. "A1:D4") twoCellAnchor}
+\item{...}{additional arguments}
}
\description{
Insert an image into a worksheet
}
\examples{
-## Create a new workbook
-wb <- wb_workbook("Ayanami")
-
-## Add some worksheets
-wb$add_worksheet("Sheet 1")
-wb$add_worksheet("Sheet 2")
-wb$add_worksheet("Sheet 3")
-
-## Insert images
img <- system.file("extdata", "einstein.jpg", package = "openxlsx2")
-wb$add_image("Sheet 1", img, startRow = 5, startCol = 3, width = 6, height = 5)
-wb$add_image(2, img, startRow = 2, startCol = 2)
-wb$add_image(3, img, width = 15, height = 12, startRow = 3, startCol = "G", units = "cm")
+
+wb <- wb_workbook()$
+ add_worksheet()$
+ add_image("Sheet 1", dims = "C5", file = img, width = 6, height = 5)$
+ add_worksheet()$
+ add_image(dims = "B2", file = img)$
+ add_worksheet()$
+ add_image(dims = "G3", file = img, width = 15, height = 12, units = "cm")
}
\seealso{
-\code{\link[=wb_add_plot]{wb_add_plot()}}
+\code{\link[=wb_add_chart_xml]{wb_add_chart_xml()}} \code{\link[=wb_add_drawing]{wb_add_drawing()}} \code{\link[=wb_add_mschart]{wb_add_mschart()}} \code{\link[=wb_add_plot]{wb_add_plot()}}
}
diff --git a/man/wb_add_mschart.Rd b/man/wb_add_mschart.Rd
index b86247a9d..8396c8668 100644
--- a/man/wb_add_mschart.Rd
+++ b/man/wb_add_mschart.Rd
@@ -1,5 +1,5 @@
% Generated by roxygen2: do not edit by hand
-% Please edit documentation in R/wb_functions.R
+% Please edit documentation in R/class-workbook-wrappers.R
\name{wb_add_mschart}
\alias{wb_add_mschart}
\title{Add mschart object to an existing workbook}
@@ -9,8 +9,9 @@ wb_add_mschart(
sheet = current_sheet(),
dims = NULL,
graph,
- colOffset = 0,
- rowOffset = 0
+ col_offset = 0,
+ row_offset = 0,
+ ...
)
}
\arguments{
@@ -22,7 +23,9 @@ wb_add_mschart(
\item{graph}{mschart object}
-\item{colOffset, rowOffset}{startCol and startRow}
+\item{col_offset, row_offset}{offsets for column and row}
+
+\item{...}{additional arguments}
}
\description{
Add mschart object to an existing workbook
@@ -61,5 +64,5 @@ wb <- wb \%>\%
}
}
\seealso{
-\code{\link[=wb_data]{wb_data()}}
+\code{\link[=wb_data]{wb_data()}} \code{\link[=wb_add_chart_xml]{wb_add_chart_xml()}} \link{wb_add_image} \code{\link[=wb_add_mschart]{wb_add_mschart()}} \link{wb_add_plot}
}
diff --git a/man/wb_add_plot.Rd b/man/wb_add_plot.Rd
index fb60e9eb6..0c07d419b 100644
--- a/man/wb_add_plot.Rd
+++ b/man/wb_add_plot.Rd
@@ -7,16 +7,15 @@
wb_add_plot(
wb,
sheet = current_sheet(),
+ dims = "A1",
width = 6,
height = 4,
- startRow = 1,
- startCol = 1,
- rowOffset = 0,
- colOffset = 0,
- fileType = "png",
+ row_offset = 0,
+ col_offset = 0,
+ file_type = "png",
units = "in",
dpi = 300,
- dims = rowcol_to_dim(startRow, startCol)
+ ...
)
}
\arguments{
@@ -24,25 +23,21 @@ wb_add_plot(
\item{sheet}{A name or index of a worksheet}
+\item{dims}{Worksheet dimension, single cell ("A1") or cell range ("A1:D4")}
+
\item{width}{Width of figure. Defaults to \code{6}in.}
\item{height}{Height of figure . Defaults to \code{4}in.}
-\item{startRow}{Row coordinate of upper left corner of figure.}
-
-\item{startCol}{Column coordinate of upper left corner of figure.}
+\item{row_offset, col_offset}{offset for column and row}
-\item{rowOffset}{offset within cell (row)}
-
-\item{colOffset}{offset within cell (column)}
-
-\item{fileType}{File type of image}
+\item{file_type}{File type of image}
\item{units}{Units of width and height. Can be \code{"in"}, \code{"cm"} or \code{"px"}}
\item{dpi}{Image resolution}
-\item{dims}{Worksheet dimension, single cell ("A1") or cell range ("A1:D4")}
+\item{...}{additional arguments}
}
\description{
The current plot is saved to a temporary image file using
@@ -76,5 +71,5 @@ wb$add_plot(1, dims = "J2", width = 16, height = 10, fileType = "png", units = "
}
}
\seealso{
-\code{\link[=wb_add_image]{wb_add_image()}}
+\code{\link[=wb_add_chart_xml]{wb_add_chart_xml()}} \code{\link[=wb_add_drawing]{wb_add_drawing()}} \code{\link[=wb_add_image]{wb_add_image()}} \code{\link[=wb_add_mschart]{wb_add_mschart()}}
}
diff --git a/man/wb_add_worksheet.Rd b/man/wb_add_worksheet.Rd
index 48d5551de..b7a4c6e65 100644
--- a/man/wb_add_worksheet.Rd
+++ b/man/wb_add_worksheet.Rd
@@ -7,21 +7,21 @@
wb_add_worksheet(
wb,
sheet = next_sheet(),
- gridLines = TRUE,
- rowColHeaders = TRUE,
- tabColor = NULL,
+ grid_lines = TRUE,
+ row_col_headers = TRUE,
+ tab_color = NULL,
zoom = 100,
header = NULL,
footer = NULL,
- oddHeader = header,
- oddFooter = footer,
- evenHeader = header,
- evenFooter = footer,
- firstHeader = header,
- firstFooter = footer,
+ odd_header = header,
+ odd_footer = footer,
+ even_header = header,
+ even_footer = footer,
+ first_header = header,
+ first_footer = footer,
visible = c("true", "false", "hidden", "visible", "veryhidden"),
- hasDrawing = FALSE,
- paperSize = getOption("openxlsx2.paperSize", default = 9),
+ has_drawing = FALSE,
+ paper_size = getOption("openxlsx2.paperSize", default = 9),
orientation = getOption("openxlsx2.orientation", default = "portrait"),
hdpi = getOption("openxlsx2.hdpi", default = getOption("openxlsx2.dpi", default = 300)),
vdpi = getOption("openxlsx2.vdpi", default = getOption("openxlsx2.dpi", default = 300)),
@@ -33,28 +33,28 @@ wb_add_worksheet(
\item{sheet}{A name for the new worksheet}
-\item{gridLines}{A logical. If \code{FALSE}, the worksheet grid lines will be
+\item{grid_lines}{A logical. If \code{FALSE}, the worksheet grid lines will be
hidden.}
-\item{rowColHeaders}{A logical. If \code{FALSE}, the worksheet colname and rowname will be
+\item{row_col_headers}{A logical. If \code{FALSE}, the worksheet colname and rowname will be
hidden.}
-\item{tabColor}{Color of the worksheet tab. A valid color (belonging to
+\item{tab_color}{Color of the worksheet tab. A valid color (belonging to
colors()) or a valid hex color beginning with "#"}
\item{zoom}{A numeric between 10 and 400. Worksheet zoom level as a
percentage.}
-\item{header, oddHeader, evenHeader, firstHeader, footer, oddFooter, evenFooter, firstFooter}{Character vector of length 3 corresponding to positions left, center,
+\item{header, odd_header, even_header, first_header, footer, odd_footer, even_footer, first_footer}{Character vector of length 3 corresponding to positions left, center,
right. \code{header} and \code{footer} are used to default additional arguments.
Setting \code{even}, \code{odd}, or \code{first}, overrides \code{header}/\code{footer}. Use \code{NA} to
skip a position.}
\item{visible}{If FALSE, sheet is hidden else visible.}
-\item{hasDrawing}{If TRUE prepare a drawing output (TODO does this work?)}
+\item{has_drawing}{If TRUE prepare a drawing output (TODO does this work?)}
-\item{paperSize}{An integer corresponding to a paper size. See ?ws_page_setup for
+\item{paper_size}{An integer corresponding to a paper size. See ?ws_page_setup for
details.}
\item{orientation}{One of "portrait" or "landscape"}
diff --git a/man/wb_load.Rd b/man/wb_load.Rd
index 3777825f8..4badaebd0 100644
--- a/man/wb_load.Rd
+++ b/man/wb_load.Rd
@@ -4,12 +4,19 @@
\alias{wb_load}
\title{Load an existing .xlsx file}
\usage{
-wb_load(file, xlsxFile = NULL, sheet, data_only = FALSE, calc_chain = FALSE)
+wb_load(
+ file,
+ xlsx_file = NULL,
+ sheet,
+ data_only = FALSE,
+ calc_chain = FALSE,
+ ...
+)
}
\arguments{
\item{file}{A path to an existing .xlsx or .xlsm file}
-\item{xlsxFile}{alias for file}
+\item{xlsx_file}{alias for file}
\item{sheet}{optional sheet parameter. if this is applied, only the selected
sheet will be loaded.}
@@ -23,6 +30,8 @@ evaluated. Removing the calculation chain is considered harmless. The calc
chain will be created upon the next time the worksheet is loaded in
spreadsheet software. Keeping it, might only speed loading time in said
software.}
+
+\item{...}{additional arguments}
}
\value{
Workbook object.
diff --git a/man/wb_modify_basefont.Rd b/man/wb_modify_basefont.Rd
index 547def796..9d389f9e1 100644
--- a/man/wb_modify_basefont.Rd
+++ b/man/wb_modify_basefont.Rd
@@ -7,20 +7,20 @@
\usage{
wb_set_base_font(
wb,
- fontSize = 11,
- fontColor = wb_color(theme = "1"),
- fontName = "Calibri",
+ font_size = 11,
+ font_color = wb_color(theme = "1"),
+ font_name = "Calibri",
...
)
}
\arguments{
\item{wb}{A workbook object}
-\item{fontSize}{font size}
+\item{font_size}{font size}
-\item{fontColor}{font color}
+\item{font_color}{font color}
-\item{fontName}{Name of a font}
+\item{font_name}{Name of a font}
\item{...}{...}
}
diff --git a/man/wb_read.Rd b/man/wb_read.Rd
index e1fd52263..24c8fe6f8 100644
--- a/man/wb_read.Rd
+++ b/man/wb_read.Rd
@@ -5,40 +5,40 @@
\title{Read from an Excel file or Workbook object}
\usage{
wb_read(
- xlsxFile,
+ xlsx_file,
sheet = 1,
- startRow = 1,
- startCol = NULL,
- rowNames = FALSE,
- colNames = TRUE,
- skipEmptyRows = FALSE,
- skipEmptyCols = FALSE,
+ start_row = 1,
+ start_col = NULL,
+ row_names = FALSE,
+ col_names = TRUE,
+ skip_empty_rows = FALSE,
+ skip_empty_cols = FALSE,
rows = NULL,
cols = NULL,
- detectDates = TRUE,
- namedRegion,
+ detect_dates = TRUE,
+ named_region,
na.strings = "NA",
na.numbers = NA,
...
)
}
\arguments{
-\item{xlsxFile}{An xlsx file, Workbook object or URL to xlsx file.}
+\item{xlsx_file}{An xlsx file, Workbook object or URL to xlsx file.}
\item{sheet}{The name or index of the sheet to read data from.}
-\item{startRow}{first row to begin looking for data.}
+\item{start_row}{first row to begin looking for data.}
-\item{startCol}{first column to begin looking for data.}
+\item{start_col}{first column to begin looking for data.}
-\item{rowNames}{If \code{TRUE}, first column of data will be used as row names.}
+\item{row_names}{If \code{TRUE}, first column of data will be used as row names.}
-\item{colNames}{If \code{TRUE}, the first row of data will be used as column names.}
+\item{col_names}{If \code{TRUE}, the first row of data will be used as column names.}
-\item{skipEmptyRows}{If \code{TRUE}, empty rows are skipped else empty rows after the first row containing data
+\item{skip_empty_rows}{If \code{TRUE}, empty rows are skipped else empty rows after the first row containing data
will return a row of NAs.}
-\item{skipEmptyCols}{If \code{TRUE}, empty columns are skipped.}
+\item{skip_empty_cols}{If \code{TRUE}, empty columns are skipped.}
\item{rows}{A numeric vector specifying which rows in the Excel file to read.
If NULL, all rows are read.}
@@ -46,9 +46,9 @@ If NULL, all rows are read.}
\item{cols}{A numeric vector specifying which columns in the Excel file to read.
If NULL, all columns are read.}
-\item{detectDates}{If \code{TRUE}, attempt to recognize dates and perform conversion.}
+\item{detect_dates}{If \code{TRUE}, attempt to recognize dates and perform conversion.}
-\item{namedRegion}{A named region in the Workbook. If not NULL startRow, rows and cols parameters are ignored.}
+\item{named_region}{A named region in the Workbook. If not NULL startRow, rows and cols parameters are ignored.}
\item{na.strings}{A character vector of strings which are to be interpreted as NA. Blank cells will be returned as NA.}
diff --git a/man/wb_set_bookview.Rd b/man/wb_set_bookview.Rd
index 423aaffa9..93566acce 100644
--- a/man/wb_set_bookview.Rd
+++ b/man/wb_set_bookview.Rd
@@ -6,49 +6,52 @@
\usage{
wb_set_bookview(
wb,
- activeTab = NULL,
- autoFilterDateGrouping = NULL,
- firstSheet = NULL,
+ active_tab = NULL,
+ auto_filter_date_grouping = NULL,
+ first_sheet = NULL,
minimized = NULL,
- showHorizontalScroll = NULL,
- showSheetTabs = NULL,
- showVerticalScroll = NULL,
- tabRatio = NULL,
+ show_horizontal_scroll = NULL,
+ show_sheet_tabs = NULL,
+ show_vertical_scroll = NULL,
+ tab_ratio = NULL,
visibility = NULL,
- windowHeight = NULL,
- windowWidth = NULL,
- xWindow = NULL,
- yWindow = NULL
+ window_height = NULL,
+ window_width = NULL,
+ x_window = NULL,
+ y_window = NULL,
+ ...
)
}
\arguments{
\item{wb}{A \link{wbWorkbook} object}
-\item{activeTab}{activeTab}
+\item{active_tab}{activeTab}
-\item{autoFilterDateGrouping}{autoFilterDateGrouping}
+\item{auto_filter_date_grouping}{autoFilterDateGrouping}
-\item{firstSheet}{firstSheet}
+\item{first_sheet}{firstSheet}
\item{minimized}{minimized}
-\item{showHorizontalScroll}{showHorizontalScroll}
+\item{show_horizontal_scroll}{showHorizontalScroll}
-\item{showSheetTabs}{showSheetTabs}
+\item{show_sheet_tabs}{showSheetTabs}
-\item{showVerticalScroll}{showVerticalScroll}
+\item{show_vertical_scroll}{showVerticalScroll}
-\item{tabRatio}{tabRatio}
+\item{tab_ratio}{tabRatio}
\item{visibility}{visibility}
-\item{windowHeight}{windowHeight}
+\item{window_height}{windowHeight}
-\item{windowWidth}{windowWidth}
+\item{window_width}{windowWidth}
-\item{xWindow}{xWindow}
+\item{x_window}{xWindow}
-\item{yWindow}{yWindow}
+\item{y_window}{yWindow}
+
+\item{...}{additional arguments}
}
\value{
The \code{wbWorkbook} object
diff --git a/man/wb_set_header_footer.Rd b/man/wb_set_header_footer.Rd
index 24b7d81bc..ac5105565 100644
--- a/man/wb_set_header_footer.Rd
+++ b/man/wb_set_header_footer.Rd
@@ -9,10 +9,11 @@ wb_set_header_footer(
sheet = current_sheet(),
header = NULL,
footer = NULL,
- evenHeader = NULL,
- evenFooter = NULL,
- firstHeader = NULL,
- firstFooter = NULL
+ even_header = NULL,
+ even_footer = NULL,
+ first_header = NULL,
+ first_footer = NULL,
+ ...
)
}
\arguments{
@@ -24,13 +25,15 @@ wb_set_header_footer(
\item{footer}{document footer. Character vector of length 3 corresponding to positions left, center, right. Use NA to skip a position.}
-\item{evenHeader}{document header for even pages.}
+\item{even_header}{document header for even pages.}
-\item{evenFooter}{document footer for even pages.}
+\item{even_footer}{document footer for even pages.}
-\item{firstHeader}{document header for first page only.}
+\item{first_header}{document header for first page only.}
-\item{firstFooter}{document footer for first page only.}
+\item{first_footer}{document footer for first page only.}
+
+\item{...}{additional arguments}
}
\description{
Set document headers and footers
diff --git a/man/wb_set_sheetview.Rd b/man/wb_set_sheetview.Rd
index f7996f162..2dde752bb 100644
--- a/man/wb_set_sheetview.Rd
+++ b/man/wb_set_sheetview.Rd
@@ -7,25 +7,26 @@
wb_set_sheetview(
wb,
sheet = current_sheet(),
- colorId = NULL,
- defaultGridColor = NULL,
- rightToLeft = NULL,
- showFormulas = NULL,
- showGridLines = NULL,
- showOutlineSymbols = NULL,
- showRowColHeaders = NULL,
- showRuler = NULL,
- showWhiteSpace = NULL,
- showZeros = NULL,
- tabSelected = NULL,
- topLeftCell = NULL,
+ color_id = NULL,
+ default_grid_color = NULL,
+ right_to_left = NULL,
+ show_formulas = NULL,
+ show_grid_lines = NULL,
+ show_outline_symbols = NULL,
+ show_row_col_headers = NULL,
+ show_ruler = NULL,
+ show_white_space = NULL,
+ show_zeros = NULL,
+ tab_selected = NULL,
+ top_left_cell = NULL,
view = NULL,
- windowProtection = NULL,
- workbookViewId = NULL,
- zoomScale = NULL,
- zoomScaleNormal = NULL,
- zoomScalePageLayoutView = NULL,
- zoomScaleSheetLayoutView = NULL
+ window_protection = NULL,
+ workbook_view_id = NULL,
+ zoom_scale = NULL,
+ zoom_scale_normal = NULL,
+ zoom_scale_page_layout_view = NULL,
+ zoom_scale_sheet_layout_view = NULL,
+ ...
)
}
\arguments{
@@ -33,35 +34,37 @@ wb_set_sheetview(
\item{sheet}{sheet}
-\item{colorId, defaultGridColor}{Integer: A color, default is 64}
+\item{color_id, default_grid_color}{Integer: A color, default is 64}
-\item{rightToLeft}{Logical: if TRUE column ordering is right to left}
+\item{right_to_left}{Logical: if TRUE column ordering is right to left}
-\item{showFormulas}{Logical: if TRUE cell formulas are shown}
+\item{show_formulas}{Logical: if TRUE cell formulas are shown}
-\item{showGridLines}{Logical: if TRUE the worksheet grid is shown}
+\item{show_grid_lines}{Logical: if TRUE the worksheet grid is shown}
-\item{showOutlineSymbols}{Logical: if TRUE outline symbols are shown}
+\item{show_outline_symbols}{Logical: if TRUE outline symbols are shown}
-\item{showRowColHeaders}{Logical: if TRUE row and column headers are shown}
+\item{show_row_col_headers}{Logical: if TRUE row and column headers are shown}
-\item{showRuler}{Logical: if TRUE a ruler is shown in page layout view}
+\item{show_ruler}{Logical: if TRUE a ruler is shown in page layout view}
-\item{showWhiteSpace}{Logical: if TRUE margins are shown in page layout view}
+\item{show_white_space}{Logical: if TRUE margins are shown in page layout view}
-\item{showZeros}{Logical: if FALSE cells containing zero are shown blank if !showFormulas}
+\item{show_zeros}{Logical: if FALSE cells containing zero are shown blank if !showFormulas}
-\item{tabSelected}{Integer: zero vector indicating the selected tab}
+\item{tab_selected}{Integer: zero vector indicating the selected tab}
-\item{topLeftCell}{Cell: the cell shown in the top left corner / or top right with rightToLeft}
+\item{top_left_cell}{Cell: the cell shown in the top left corner / or top right with rightToLeft}
\item{view}{View: "normal", "pageBreakPreview" or "pageLayout"}
-\item{windowProtection}{Logical: if TRUE the panes are protected}
+\item{window_protection}{Logical: if TRUE the panes are protected}
-\item{workbookViewId}{integer: Pointing to some other view inside the workbook}
+\item{workbook_view_id}{integer: Pointing to some other view inside the workbook}
-\item{zoomScale, zoomScaleNormal, zoomScalePageLayoutView, zoomScaleSheetLayoutView}{Integer: the zoom scale should be between 10 and 400. These are values for current, normal etc.}
+\item{zoom_scale, zoom_scale_normal, zoom_scale_page_layout_view, zoom_scale_sheet_layout_view}{Integer: the zoom scale should be between 10 and 400. These are values for current, normal etc.}
+
+\item{...}{additional arguments}
}
\value{
The \code{wbWorksheetObject}, invisibly
diff --git a/man/wb_to_df.Rd b/man/wb_to_df.Rd
index 266fb0d55..184053b16 100644
--- a/man/wb_to_df.Rd
+++ b/man/wb_to_df.Rd
@@ -5,66 +5,67 @@
\title{Create Dataframe from Workbook}
\usage{
wb_to_df(
- xlsxFile,
+ xlsx_file,
sheet,
- startRow = 1,
- startCol = NULL,
- rowNames = FALSE,
- colNames = TRUE,
- skipEmptyRows = FALSE,
- skipEmptyCols = FALSE,
- skipHiddenRows = FALSE,
- skipHiddenCols = FALSE,
+ start_row = 1,
+ start_col = NULL,
+ row_names = FALSE,
+ col_names = TRUE,
+ skip_empty_rows = FALSE,
+ skip_empty_cols = FALSE,
+ skip_hidden_rows = FALSE,
+ skip_hidden_cols = FALSE,
rows = NULL,
cols = NULL,
- detectDates = TRUE,
+ detect_dates = TRUE,
na.strings = "#N/A",
na.numbers = NA,
- fillMergedCells = FALSE,
+ fill_merged_cells = FALSE,
dims,
- showFormula = FALSE,
+ show_formula = FALSE,
convert = TRUE,
types,
named_region,
- keep_attributes = FALSE
+ keep_attributes = FALSE,
+ ...
)
}
\arguments{
-\item{xlsxFile}{An xlsx file, Workbook object or URL to xlsx file.}
+\item{xlsx_file}{An xlsx file, Workbook object or URL to xlsx file.}
\item{sheet}{Either sheet name or index. When missing the first sheet in the workbook is selected.}
-\item{startRow}{first row to begin looking for data.}
+\item{start_row}{first row to begin looking for data.}
-\item{startCol}{first column to begin looking for data.}
+\item{start_col}{first column to begin looking for data.}
-\item{rowNames}{If TRUE, the first col of data will be used as row names.}
+\item{row_names}{If TRUE, the first col of data will be used as row names.}
-\item{colNames}{If TRUE, the first row of data will be used as column names.}
+\item{col_names}{If TRUE, the first row of data will be used as column names.}
-\item{skipEmptyRows}{If TRUE, empty rows are skipped.}
+\item{skip_empty_rows}{If TRUE, empty rows are skipped.}
-\item{skipEmptyCols}{If TRUE, empty columns are skipped.}
+\item{skip_empty_cols}{If TRUE, empty columns are skipped.}
-\item{skipHiddenRows}{If TRUE, hidden rows are skipped.}
+\item{skip_hidden_rows}{If TRUE, hidden rows are skipped.}
-\item{skipHiddenCols}{If TRUE, hidden columns are skipped.}
+\item{skip_hidden_cols}{If TRUE, hidden columns are skipped.}
\item{rows}{A numeric vector specifying which rows in the Excel file to read. If NULL, all rows are read.}
\item{cols}{A numeric vector specifying which columns in the Excel file to read. If NULL, all columns are read.}
-\item{detectDates}{If TRUE, attempt to recognize dates and perform conversion.}
+\item{detect_dates}{If TRUE, attempt to recognize dates and perform conversion.}
\item{na.strings}{A character vector of strings which are to be interpreted as NA. Blank cells will be returned as NA.}
\item{na.numbers}{A numeric vector of digits which are to be interpreted as NA. Blank cells will be returned as NA.}
-\item{fillMergedCells}{If TRUE, the value in a merged cell is given to all cells within the merge.}
+\item{fill_merged_cells}{If TRUE, the value in a merged cell is given to all cells within the merge.}
\item{dims}{Character string of type "A1:B2" as optional dimensions to be imported.}
-\item{showFormula}{If TRUE, the underlying Excel formulas are shown.}
+\item{show_formula}{If TRUE, the underlying Excel formulas are shown.}
\item{convert}{If TRUE, a conversion to dates and numerics is attempted.}
@@ -73,6 +74,8 @@ wb_to_df(
\item{named_region}{Character string with a named_region (defined name or table). If no sheet is selected, the first appearance will be selected.}
\item{keep_attributes}{If TRUE additional attributes are returned. (These are used internally to define a cell type.)}
+
+\item{...}{additional arguments}
}
\description{
Simple function to create a dataframe from a workbook. Simple as in simply
diff --git a/man/wb_workbook.Rd b/man/wb_workbook.Rd
index a84baeb91..7ba91737f 100644
--- a/man/wb_workbook.Rd
+++ b/man/wb_workbook.Rd
@@ -9,8 +9,9 @@ wb_workbook(
title = NULL,
subject = NULL,
category = NULL,
- datetimeCreated = Sys.time(),
- theme = NULL
+ datetime_created = Sys.time(),
+ theme = NULL,
+ ...
)
}
\arguments{
@@ -22,9 +23,11 @@ wb_workbook(
\item{category}{Workbook properties category}
-\item{datetimeCreated}{The time of the workbook is created}
+\item{datetime_created}{The time of the workbook is created}
\item{theme}{Optional theme identified by string or number}
+
+\item{...}{additional arguments}
}
\value{
A \link{wbWorkbook} object
diff --git a/man/write_data.Rd b/man/write_data.Rd
index 485135ce9..24f9ca7ce 100644
--- a/man/write_data.Rd
+++ b/man/write_data.Rd
@@ -9,38 +9,40 @@ wb_add_data(
wb,
sheet = current_sheet(),
x,
- startCol = 1,
- startRow = 1,
- dims = rowcol_to_dims(startRow, startCol),
+ dims = rowcol_to_dims(start_row, start_col),
+ start_col = 1,
+ start_row = 1,
array = FALSE,
- colNames = TRUE,
- rowNames = FALSE,
- withFilter = FALSE,
+ col_names = TRUE,
+ row_names = FALSE,
+ with_filter = FALSE,
name = NULL,
sep = ", ",
- applyCellStyle = TRUE,
- removeCellStyle = FALSE,
+ apply_cell_style = TRUE,
+ remove_cell_style = FALSE,
na.strings = na_strings(),
- inline_strings = TRUE
+ inline_strings = TRUE,
+ ...
)
write_data(
wb,
sheet,
x,
- startCol = 1,
- startRow = 1,
- dims = rowcol_to_dims(startRow, startCol),
+ dims = rowcol_to_dims(start_row, start_col),
+ start_col = 1,
+ start_row = 1,
array = FALSE,
- colNames = TRUE,
- rowNames = FALSE,
- withFilter = FALSE,
+ col_names = TRUE,
+ row_names = FALSE,
+ with_filter = FALSE,
sep = ", ",
name = NULL,
- applyCellStyle = TRUE,
- removeCellStyle = FALSE,
+ apply_cell_style = TRUE,
+ remove_cell_style = FALSE,
na.strings = na_strings(),
- inline_strings = TRUE
+ inline_strings = TRUE,
+ ...
)
}
\arguments{
@@ -50,32 +52,34 @@ write_data(
\item{x}{Object to be written. For classes supported look at the examples.}
-\item{startCol}{A vector specifying the starting column to write to.}
+\item{dims}{Spreadsheet dimensions that will determine startCol and startRow: "A1", "A1:B2", "A:B"}
-\item{startRow}{A vector specifying the starting row to write to.}
+\item{start_col}{A vector specifying the starting column to write to.}
-\item{dims}{Spreadsheet dimensions that will determine startCol and startRow: "A1", "A1:B2", "A:B"}
+\item{start_row}{A vector specifying the starting row to write to.}
\item{array}{A bool if the function written is of type array}
-\item{colNames}{If \code{TRUE}, column names of x are written.}
+\item{col_names}{If \code{TRUE}, column names of x are written.}
-\item{rowNames}{If \code{TRUE}, data.frame row names of x are written.}
+\item{row_names}{If \code{TRUE}, data.frame row names of x are written.}
-\item{withFilter}{If \code{TRUE}, add filters to the column name row. NOTE can only have one filter per worksheet.}
+\item{with_filter}{If \code{TRUE}, add filters to the column name row. NOTE can only have one filter per worksheet.}
\item{name}{If not NULL, a named region is defined.}
\item{sep}{Only applies to list columns. The separator used to collapse list columns to a character vector e.g. sapply(x$list_column, paste, collapse = sep).}
-\item{applyCellStyle}{apply styles when writing on the sheet}
+\item{apply_cell_style}{apply styles when writing on the sheet}
-\item{removeCellStyle}{if writing into existing cells, should the cell style be removed?}
+\item{remove_cell_style}{if writing into existing cells, should the cell style be removed?}
\item{na.strings}{Value used for replacing \code{NA} values from \code{x}. Default
\code{na_strings()} uses the special \verb{#N/A} value within the workbook.}
\item{inline_strings}{write characters as inline strings}
+
+\item{...}{additional arguments}
}
\value{
A clone of `wb``
diff --git a/man/write_datatable.Rd b/man/write_datatable.Rd
index f0801ac92..89d164be8 100644
--- a/man/write_datatable.Rd
+++ b/man/write_datatable.Rd
@@ -8,23 +8,24 @@ write_datatable(
wb,
sheet,
x,
- startCol = 1,
- startRow = 1,
- dims = rowcol_to_dims(startRow, startCol),
- colNames = TRUE,
- rowNames = FALSE,
- tableStyle = "TableStyleLight9",
- tableName = NULL,
- withFilter = TRUE,
+ dims = rowcol_to_dims(start_row, start_col),
+ start_col = 1,
+ start_row = 1,
+ col_names = TRUE,
+ row_names = FALSE,
+ table_style = "TableStyleLight9",
+ table_name = NULL,
+ with_filter = TRUE,
sep = ", ",
- firstColumn = FALSE,
- lastColumn = FALSE,
- bandedRows = TRUE,
- bandedCols = FALSE,
- applyCellStyle = TRUE,
- removeCellStyle = FALSE,
+ first_column = FALSE,
+ last_column = FALSE,
+ banded_rows = TRUE,
+ banded_cols = FALSE,
+ apply_cell_style = TRUE,
+ remove_cell_style = FALSE,
na.strings = na_strings(),
- inline_strings = TRUE
+ inline_strings = TRUE,
+ ...
)
}
\arguments{
@@ -34,21 +35,21 @@ write_datatable(
\item{x}{A data frame.}
-\item{startCol}{A vector specifying the starting column to write df}
+\item{dims}{Spreadsheet dimensions that will determine startCol and startRow: "A1", "A1:B2", "A:B"}
-\item{startRow}{A vector specifying the starting row to write df}
+\item{start_col}{A vector specifying the starting column to write df}
-\item{dims}{Spreadsheet dimensions that will determine startCol and startRow: "A1", "A1:B2", "A:B"}
+\item{start_row}{A vector specifying the starting row to write df}
-\item{colNames}{If \code{TRUE}, column names of x are written.}
+\item{col_names}{If \code{TRUE}, column names of x are written.}
-\item{rowNames}{If \code{TRUE}, row names of x are written.}
+\item{row_names}{If \code{TRUE}, row names of x are written.}
-\item{tableStyle}{Any excel table style name or "none" (see "formatting" vignette).}
+\item{table_style}{Any excel table style name or "none" (see "formatting" vignette).}
-\item{tableName}{name of table in workbook. The table name must be unique.}
+\item{table_name}{name of table in workbook. The table name must be unique.}
-\item{withFilter}{If \code{TRUE}, columns with have filters in the first row.}
+\item{with_filter}{If \code{TRUE}, columns with have filters in the first row.}
\item{sep}{Only applies to list columns. The separator used to collapse list columns to a character vector e.g. sapply(x$list_column, paste, collapse = sep).
\cr\cr
@@ -57,22 +58,24 @@ write_datatable(
\if{html}{\figure{tableoptions.png}{options: width="40\%" alt="Figure: table_options.png"}}
\if{latex}{\figure{tableoptions.pdf}{options: width=7cm}}}
-\item{firstColumn}{logical. If TRUE, the first column is bold}
+\item{first_column}{logical. If TRUE, the first column is bold}
-\item{lastColumn}{logical. If TRUE, the last column is bold}
+\item{last_column}{logical. If TRUE, the last column is bold}
-\item{bandedRows}{logical. If TRUE, rows are color banded}
+\item{banded_rows}{logical. If TRUE, rows are color banded}
-\item{bandedCols}{logical. If TRUE, the columns are color banded}
+\item{banded_cols}{logical. If TRUE, the columns are color banded}
-\item{applyCellStyle}{apply styles when writing on the sheet}
+\item{apply_cell_style}{apply styles when writing on the sheet}
-\item{removeCellStyle}{if writing into existing cells, should the cell style be removed?}
+\item{remove_cell_style}{if writing into existing cells, should the cell style be removed?}
\item{na.strings}{Value used for replacing \code{NA} values from \code{x}. Default
\code{na_strings()} uses the special \verb{#N/A} value within the workbook.}
\item{inline_strings}{write characters as inline strings}
+
+\item{...}{additional arguments}
}
\description{
Write to a worksheet and format as an Excel table
diff --git a/man/write_file.Rd b/man/write_file.Rd
deleted file mode 100644
index 97aa90642..000000000
--- a/man/write_file.Rd
+++ /dev/null
@@ -1,23 +0,0 @@
-% Generated by roxygen2: do not edit by hand
-% Please edit documentation in R/pugixml.R
-\name{write_file}
-\alias{write_file}
-\title{write xml file}
-\usage{
-write_file(head = "", body = "", tail = "", fl = "", escapes = FALSE)
-}
-\arguments{
-\item{head}{head part of xml}
-
-\item{body}{body part of xml}
-
-\item{tail}{tail part of xml}
-
-\item{fl}{file name with full path}
-
-\item{escapes}{bool if characters like "&" should be escaped. The default is
-no escape, assuming that xml to export is already valid.}
-}
-\description{
-brings the added benefit of xml checking
-}
diff --git a/man/write_formula.Rd b/man/write_formula.Rd
index c0b89e409..23c78236c 100644
--- a/man/write_formula.Rd
+++ b/man/write_formula.Rd
@@ -8,13 +8,14 @@ write_formula(
wb,
sheet,
x,
- startCol = 1,
- startRow = 1,
- dims = rowcol_to_dims(startRow, startCol),
+ dims = rowcol_to_dims(start_row, start_col),
+ start_col = 1,
+ start_row = 1,
array = FALSE,
cm = FALSE,
- applyCellStyle = TRUE,
- removeCellStyle = FALSE
+ apply_cell_style = TRUE,
+ remove_cell_style = FALSE,
+ ...
)
}
\arguments{
@@ -24,19 +25,21 @@ write_formula(
\item{x}{A character vector.}
-\item{startCol}{A vector specifying the starting column to write to.}
+\item{dims}{Spreadsheet dimensions that will determine startCol and startRow: "A1", "A1:B2", "A:B"}
-\item{startRow}{A vector specifying the starting row to write to.}
+\item{start_col}{A vector specifying the starting column to write to.}
-\item{dims}{Spreadsheet dimensions that will determine startCol and startRow: "A1", "A1:B2", "A:B"}
+\item{start_row}{A vector specifying the starting row to write to.}
\item{array}{A bool if the function written is of type array}
\item{cm}{A bool if the function is of type cm (array with hidden curly braces)}
-\item{applyCellStyle}{apply styles when writing on the sheet}
+\item{apply_cell_style}{apply styles when writing on the sheet}
+
+\item{remove_cell_style}{if writing into existing cells, should the cell style be removed?}
-\item{removeCellStyle}{if writing into existing cells, should the cell style be removed?}
+\item{...}{additional arguments}
}
\description{
Write a a character vector containing Excel formula to a worksheet.
diff --git a/man/write_xlsx.Rd b/man/write_xlsx.Rd
index ca3ead703..115201a84 100644
--- a/man/write_xlsx.Rd
+++ b/man/write_xlsx.Rd
@@ -4,14 +4,14 @@
\alias{write_xlsx}
\title{write data to an xlsx file}
\usage{
-write_xlsx(x, file, asTable = FALSE, ...)
+write_xlsx(x, file, as_table = FALSE, ...)
}
\arguments{
\item{x}{object or a list of objects that can be handled by \code{\link[=write_data]{write_data()}} to write to file}
\item{file}{xlsx file name}
-\item{asTable}{write using write_datatable as opposed to write_data}
+\item{as_table}{write using write_datatable as opposed to write_data}
\item{...}{optional parameters to pass to functions:
\itemize{
diff --git a/tests/testthat/test-class-comment.R b/tests/testthat/test-class-comment.R
index 71146ac0a..f4b5f297b 100644
--- a/tests/testthat/test-class-comment.R
+++ b/tests/testthat/test-class-comment.R
@@ -94,7 +94,7 @@ test_that("wb_add_comment", {
wb2 <- wb_workbook() %>%
wb_add_worksheet() %>%
- wb_add_comment(col = "A", row = 1, comment = c1)
+ wb_add_comment(dims = "A1", comment = c1)
expect_equal(wb$comments, wb2$comments)
@@ -114,10 +114,17 @@ test_that("wb_remove_comment", {
add_comment(dims = "A1", comment = c1)$
remove_comment(dims = "A1")
- wb2 <- wb_workbook() %>%
- wb_add_worksheet() %>%
- wb_add_comment(col = "A", row = 1, comment = c1) %>%
- wb_remove_comment(col = "A", row = 1)
+ # deprecated col / row code
+ wb2 <- wb_workbook() %>% wb_add_worksheet()
+ expect_warning(
+ wb2 <- wb2 %>%
+ wb_add_comment(col = "A", row = 1, comment = c1),
+ "'col/row' is deprecated."
+ )
+ expect_warning(
+ wb2 <- wb2 %>% wb_remove_comment(col = "A", row = 1),
+ "'col/row/gridExpand' is deprecated."
+ )
expect_equal(wb$comments, wb2$comments)
@@ -141,7 +148,7 @@ test_that("removing comment sheet works", {
wb <- wb_workbook()$
add_worksheet("Sheet 1")$
- add_comment(1, col = "B", row = 10, comment = c1)$
+ add_comment(dims = "B10", comment = c1)$
add_worksheet()$
remove_worksheet(1)
diff --git a/tests/testthat/test-class-workbook-wrappers.R b/tests/testthat/test-class-workbook-wrappers.R
index 82b72e205..d067c5794 100644
--- a/tests/testthat/test-class-workbook-wrappers.R
+++ b/tests/testthat/test-class-workbook-wrappers.R
@@ -253,10 +253,10 @@ test_that("wb_grid_lines() is a wrapper", {
test_that("wb_add_named_region(), wb_remove_named_region() are wrappers", {
wb <- wb_workbook()$add_worksheet("a")
- params <- list(sheet = 1, cols = 1, rows = 1, name = "cool")
+ params <- list(sheet = 1, dims = "A1", name = "cool")
expect_wrapper("add_named_region", wb = wb, params = params)
# now add the named region so that we can remove it
- wb$add_named_region(sheet = 1, cols = 1, rows = 1, name = "cool")
+ wb$add_named_region(sheet = 1, dims = "A1", name = "cool")
expect_wrapper("remove_named_region", wb = wb, params = list(name = "cool"))
})
@@ -279,7 +279,7 @@ test_that("wb_get_sheet_visibility(), wb_set_sheet_visibility() are wrappers", {
test_that("wb_add_data_validation() is a wrapper", {
wb <- wb_workbook()$add_worksheet("a")
- params <- list(sheet = 1, cols = 1, rows = 1, type = "whole", operator = "between", value = c(0, 1))
+ params <- list(sheet = 1, dims = "A1", type = "whole", operator = "between", value = c(0, 1))
expect_wrapper("add_data_validation", wb = wb, params = params)
})
diff --git a/tests/testthat/test-class-workbook.R b/tests/testthat/test-class-workbook.R
index 251a148bb..407ac2bb9 100644
--- a/tests/testthat/test-class-workbook.R
+++ b/tests/testthat/test-class-workbook.R
@@ -127,22 +127,22 @@ test_that("data validation", {
add_worksheet("Sheet 1")$
add_data_table(x = iris)$
# whole numbers are fine
- add_data_validation(col = 1:3, rows = 2:151, type = "whole",
+ add_data_validation(dims = "A2:C151", type = "whole",
operator = "between", value = c(1, 9)
)$
# text width 7-9 is fine
- add_data_validation(col = 5, rows = 2:151, type = "textLength",
+ add_data_validation(dims = "E2:E151", type = "textLength",
operator = "between", value = c(7, 9)
)$
## Date and Time cell validation
add_worksheet("Sheet 2")$
add_data_table(x = df)$
# date >= 2016-01-01 is fine
- add_data_validation(col = 1, rows = 2:12, type = "date",
+ add_data_validation(dims = "A2:A12", type = "date",
operator = "greaterThanOrEqual", value = as.Date("2016-01-01")
)$
# a few timestamps are fine
- add_data_validation(col = 2, rows = 2:12, type = "time",
+ add_data_validation(dims = "B2:B12", type = "time",
operator = "between", value = df$t[c(4, 8)]
)$
## validate list: validate inputs on one sheet with another
@@ -150,7 +150,7 @@ test_that("data validation", {
add_data_table(x = iris[1:30, ])$
add_worksheet("Sheet 4")$
add_data(x = sample(iris$Sepal.Length, 10))$
- add_data_validation("Sheet 3", col = 1, rows = 2:31, type = "list",
+ add_data_validation("Sheet 3", dims = "A2:A31", type = "list",
value = "'Sheet 4'!$A$1:$A$10")
exp <- c(
@@ -198,8 +198,11 @@ test_that("data validation", {
wb2$worksheets[[3]]$dataValidations
)
- wb2$add_data_validation("Sheet 3", col = 2, rows = 2:31, type = "list",
- value = "'Sheet 4'!$A$1:$A$10")
+ expect_warning(
+ wb2$add_data_validation("Sheet 3", cols = 2, rows = 2:31, type = "list",
+ value = "'Sheet 4'!$A$1:$A$10"),
+ "'cols/rows' is deprecated."
+ )
exp <- c(
"'Sheet 4'!$A$1:$A$10",
@@ -211,13 +214,16 @@ test_that("data validation", {
### tests if conditions
# test col2int
- wb <- wb_workbook()$
- add_worksheet("Sheet 1")$
- add_data_table(x = head(iris))$
- # whole numbers are fine
- add_data_validation(col = "A", rows = 2:151, type = "whole",
- operator = "between", value = c(1, 9)
- )
+ expect_warning(
+ wb <- wb_workbook()$
+ add_worksheet("Sheet 1")$
+ add_data_table(x = head(iris))$
+ # whole numbers are fine
+ add_data_validation(cols = "A", rows = 2:151, type = "whole",
+ operator = "between", value = c(1, 9)
+ ),
+ "'cols/rows' is deprecated."
+ )
exp <- "19"
got <- wb$worksheets[[1]]$dataValidations
@@ -287,7 +293,7 @@ test_that("data validation", {
add_worksheet("Sheet 1")$
add_data(x = c(-1:1), colNames = FALSE)$
# whole numbers are fine
- add_data_validation(col = 1, rows = 1:3, type = "whole",
+ add_data_validation(dims = "A1:A3", type = "whole",
operator = "greaterThan", value = c(0),
errorStyle = "information", errorTitle = "ERROR!",
error = "Some error ocurred!",
@@ -304,7 +310,7 @@ test_that("data validation", {
add_worksheet("Sheet 1")$
add_data(x = data.frame(x = 1, y = 2), colNames = FALSE)$
# whole numbers are fine
- add_data_validation(col = 1, rows = 1:3, type = "custom", value = "A1=B1")
+ add_data_validation(dims = "A1:A3", type = "custom", value = "A1=B1")
exp <- "A1=B1"
got <- wb$worksheets[[1]]$dataValidations
@@ -693,7 +699,7 @@ test_that("various image functions work as expected", {
expect_warning(
wb$add_worksheet()$add_image(file = img, width = 6, height = 5, dims = NULL, startRow = 2, startCol = 2),
- "dims is NULL, startRow/startCol will have no impact"
+ "'start_col/start_row' is deprecated."
)
})
diff --git a/tests/testthat/test-named_regions.R b/tests/testthat/test-named_regions.R
index 72d4efbaa..f3fc0d115 100644
--- a/tests/testthat/test-named_regions.R
+++ b/tests/testthat/test-named_regions.R
@@ -10,8 +10,11 @@ test_that("Maintaining Named Regions on Load", {
wb$add_named_region(
sheet = 1,
name = "iris",
- rows = seq_len(nrow(iris) + 1),
- cols = seq_len(ncol(iris))
+ dims = rowcol_to_dims(
+ seq_len(nrow(iris) + 1),
+ seq_len(ncol(iris)
+ )
+ )
)
## using write_data 'name' argument
@@ -144,19 +147,25 @@ test_that("Missing rows in named regions", {
wb$add_data(sheet = 1, x = iris[1:11, ], startCol = 1, startRow = 1)
delete_data(wb, sheet = 1, cols = 1:2, rows = c(6, 6))
- wb$add_named_region(
- sheet = 1,
- name = "iris",
- rows = 1:(5 + 1),
- cols = 1:2
+ expect_warning(
+ wb$add_named_region(
+ sheet = 1,
+ name = "iris",
+ rows = 1:(5 + 1),
+ cols = 1:2
+ ),
+ "'cols/rows' is deprecated."
)
- wb$add_named_region(
- sheet = 1,
- name = "iris2",
- rows = 1:(5 + 2),
- cols = 1:2
- )
+ expect_warning(
+ wb$add_named_region(
+ sheet = 1,
+ name = "iris2",
+ rows = 1:(5 + 2),
+ cols = 1:2
+ ),
+ "'cols/rows' is deprecated."
+)
## iris region is rows 1:6 & cols 1:2
## iris2 region is rows 1:7 & cols 1:2
@@ -220,15 +229,19 @@ test_that("Missing columns in named regions", {
wb$add_named_region(
sheet = 1,
name = "iris",
- rows = 1:5,
- cols = 1:2
+ dims = rowcol_to_dims(
+ 1:5,
+ 1:2
+ )
)
wb$add_named_region(
sheet = 1,
name = "iris2",
- rows = 1:5,
- cols = 1:3
+ dims = rowcol_to_dims(
+ 1:5,
+ 1:3
+ )
)
## iris region is rows 1:5 & cols 1:2
@@ -372,10 +385,10 @@ test_that("Overwrite and delete named regions", {
# no overwrite
expect_error(wb$add_data(1, iris[1:11, ], startCol = 1, startRow = 1, name = "iris"))
- expect_error(wb$add_named_region(1, name = "iris", rows = 1:5, cols = 1:2))
+ expect_error(wb$add_named_region(1, name = "iris", dims = rowcol_to_dims(1:5, 1:2)))
# overwrite
- wb$add_named_region(1, name = "iris", rows = 1:5, cols = 1:2, overwrite = TRUE)
+ wb$add_named_region(1, name = "iris", dims = "A1:B5", overwrite = TRUE)
exp <- data.frame(
name = "iris",
@@ -396,7 +409,7 @@ test_that("Overwrite and delete named regions", {
wb$remove_named_region(name = "iris")
expect_false("iris" %in% wb_get_named_regions(wb)$name)
- wb$add_named_region(1, name = "iris", rows = 1:5, cols = 1:2)
+ wb$add_named_region(1, name = "iris", dims = "A1:B5")
expect_identical(wb_get_named_regions(wb), exp)
# removing a worksheet removes the named region as well
@@ -416,8 +429,10 @@ test_that("load table", {
wb$add_named_region(
sheet = 2,
name = "iris",
- rows = seq_len(nrow(iris) + 1),
- cols = seq_along(iris)
+ dims = rowcol_to_dims(
+ seq_len(nrow(iris) + 1),
+ seq_along(iris)
+ )
)
expect_equal(c("iris", "iris_tab"), wb_get_named_regions(wb, tables = TRUE)$name)
diff --git a/tests/testthat/test-read_sources.R b/tests/testthat/test-read_sources.R
index ad1f51cb9..05dd8db42 100644
--- a/tests/testthat/test-read_sources.R
+++ b/tests/testthat/test-read_sources.R
@@ -148,7 +148,11 @@ test_that("reading charts", {
img <- system.file("extdata", "einstein.jpg", package = "openxlsx2")
which(wb$get_sheet_names() == "Uebersicht_Quoten")
- wb$add_image(19, img, startRow = 5, startCol = 3, width = 6, height = 5)
+ expect_warning(
+ wb$add_image(19, file = img, startRow = 5, startCol = 3, width = 6, height = 5),
+ "'start_col/start_row' is deprecated."
+ )
+
wb$save(temp)
# check that we wrote a chartshape
diff --git a/tests/testthat/test-standardize.R b/tests/testthat/test-standardize.R
new file mode 100644
index 000000000..c8a04c605
--- /dev/null
+++ b/tests/testthat/test-standardize.R
@@ -0,0 +1,19 @@
+test_that("standardize works", {
+
+ color <- NULL
+ standardize_color_names(colour = "green")
+ expect_equal(get("color"), "green")
+
+ tabColor <- NULL
+ standardize_color_names(tabColour = "green")
+ expect_equal(get("tabColor"), "green")
+
+ camelCase <- NULL
+ standardize_case_names(camelCase = "green")
+ expect_equal(get("camel_case"), "green")
+
+ tab_color <- NULL
+ standardize(tabColour = "green")
+ expect_equal(get("tab_color"), "green")
+
+})