Nothing
Code
create_list_names(list_data)
Message
> There are unnamed objects in argument `x`. Generating names for the empty object.
Output
[1] "Table 1" "test1" "Table 2" "test2" "Table 3" "Table 4"
Code
create_list_names(list_data)
Condition
Error in `create_list_names()`:
! The sheet names provided are invalid. You can't have missing sheet names, and a sheet named "table 1".
i If you passed a named list to `write_xlsx()`, remove the names before preceeding, or name all the elements manually.
Code
append_worksheet("test1", wb, FALSE)
Condition
Error:
! "test1" already exists in the workbook.
i set `overwrite_sheet` = TRUE if you want to overwrite it.
Code
generate_dp(-1)
Condition
Error:
! dp must be greater than zero.
Code
data_to_worksheet(mtcars, wb, "Test 1")
Condition
Error:
! The sheet "Test 1" does not exist in your workbook.
i Add it first with `openxlsx::addWorkSheet()`.
Code
xlr_table_to_sheet(xlr_table(data.frame()), wb, "test")
Condition
Error:
! The sheet "test" does not exist in your workbook.
i Add it first with `openxlsx::addWorkSheet()`.
Code
xlr_table_to_sheet(xlr_table(data.frame()), wb, "test")
Condition
Error:
i In argument: `x`.
! Your <xlr_table> "test" must contain columns.
Code
xlr_table_to_sheet(xlr_table(data.frame(data = character())), wb, "test")
Condition
Warning:
i In argument: `x`.
Your <xlr_table> "test" has no data in it's rows.
Code
dataframe_to_sheet(mtcars, wb, "Test 1 - wo TOC")
Condition
Error:
! The sheet "Test 1 - wo TOC" does not exist in your workbook.
i Add it first with `openxlsx::addWorkSheet()`.
Code
dataframe_to_sheet(data.frame(), wb, "test")
Condition
Error:
i In argument: `x`.
! Your data frame or tibble must contain columns.
Code
dataframe_to_sheet(data.frame(data = character()), wb, "test")
Condition
Warning:
i In argument: `x`.
! Your data frame or tibble has no data in it's rows.
Code
xlr_to_workbook(list())
Condition
Error:
i In argument: `x`.
! The list does not contain any elements!
Code
xlr_to_workbook(mtcars, sheet_name = 1)
Condition
Error:
i In argument: `sheet_name`.
! `sheet_name` must be NULL or a string, not a number.
Code
xlr_to_workbook(mtcars, "test", 1)
Condition
Error:
i In argument: `old_wb`.
! `old_wb` must be NULL or a openxlsx Workbook, not a number.
Code
xlr_to_workbook(mtcars, "test", overwrite_sheet = "wee")
Condition
Error:
i In argument: `overwrite_sheet`.
! `overwrite_sheet` must be TRUE or FALSE, not a string.
Code
xlr_to_workbook(mtcars, "test", TOC = "wee")
Condition
Error:
i In argument: `TOC`.
! `TOC` must be TRUE or FALSE, not a string.
Code
xlr_to_workbook(mtcars, "test", TOC = TRUE, TOC_title = FALSE)
Condition
Error:
i In argument: `TOC_title`.
! `TOC_title` must be a string, not `FALSE`.
Code
xlr_to_workbook(mtcars, "test", excel_data_table = "TITLE")
Condition
Error:
i In argument: `excel_data_table`.
! `excel_data_table` must be TRUE or FALSE, not a string.
Code
xlr_to_workbook(list(mtcars, mtcars), "test")
Condition
Warning:
i In argument: `sheet_name`.
! `sheet_name` is not NULL. This argument does nothing when you pass a list to argument `x`.
Output
A Workbook object.
Worksheets:
Sheet 1: "Table 1"
Sheet 2: "Table 2"
Worksheet write order: 1, 2
Active Sheet 1: "Table 1"
Position: 1
Code
xlr_to_workbook(list("asd", 123))
Condition
Error:
i In argument: `y`.
! `y` must be <data.frame>, <tibble>, or <xlr_table>, not a string.
Code
xlr_to_workbook(123)
Condition
Error:
i In argument: `x`.
! `x` must be <data.frame>, <tibble>, or <xlr_table>, not a number.
Code
xlr_to_workbook(mtcars)
Condition
Error:
i In argument: `sheet_name`.
! `sheet_name` cannot be missing when you provide a single sheet.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.