R6 class for a Workbook Worksheet
R6 class for a Workbook Worksheet
Public fields
sheetPr
sheetPr
dimension
dimension
sheetViews
sheetViews
sheetFormatPr
sheetFormatPr
sheet_data
sheet_data
cols_attr
cols_attr
autoFilter
autoFilter
mergeCells
mergeCells
conditionalFormatting
conditionalFormatting
dataValidations
dataValidations
freezePane
freezePane
hyperlinks
hyperlinks
sheetProtection
sheetProtection
pageMargins
pageMargins
pageSetup
pageSetup
headerFooter
headerFooter
rowBreaks
rowBreaks
colBreaks
colBreaks
drawing
drawing
legacyDrawing
legacyDrawing
legacyDrawingHF
legacyDrawingHF
oleObjects
oleObjects
tableParts
tableParts
extLst
extLst
cellWatches
cellWatches
controls
controls
customProperties
customProperties
customSheetViews
customSheetViews
dataConsolidate
dataConsolidate
drawingHF
drawingHF
relships
relships
ignoredErrors
ignoredErrors
phoneticPr
phoneticPr
picture
picture
printOptions
printOptions
protectedRanges
protectedRanges
scenarios
scenarios
sheetCalcPr
sheetCalcPr
smartTags
smartTags
sortState
sortState
webPublishItems
webPublishItems
Methods
Method new()
Creates a new wbWorksheet
object
Usage
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
)
Method unfold_cols()
unfold <cols ..>
node to dataframe. <cols><col ..>
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?
Method clean_sheet()
clean sheet (remove all values)
Usage
wbWorksheet$clean_sheet(
dims = NULL,
numbers = TRUE,
characters = TRUE,
styles = TRUE,
merged_cells = TRUE
)
Method set_print_options()
add print options
Method append()
append a field. Intended for internal use only. Not guaranteed to remain a public method.
Method set_sheetview()
add sheetview
Usage
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
)
Arguments
colorId
colorId
defaultGridColor
defaultGridColor
rightToLeft
rightToLeft
showFormulas
showFormulas
showGridLines
showGridLines
showOutlineSymbols
showOutlineSymbols
showRowColHeaders
showRowColHeaders
showRuler
showRuler
showWhiteSpace
showWhiteSpace
showZeros
showZeros
tabSelected
tabSelected
topLeftCell
topLeftCell
view
view
windowProtection
windowProtection
workbookViewId
workbookViewId
zoomScale
zoomScale
zoomScaleNormal
zoomScaleNormal
zoomScalePageLayoutView
zoomScalePageLayoutView
zoomScaleSheetLayoutView
zoomScaleSheetLayoutView
Method ignore_error()
Ignore error on worksheet
Usage
wbWorksheet$ignore_error(
dims = "A1",
calculatedColumn = FALSE,
emptyCellReference = FALSE,
evalError = FALSE,
formula = FALSE,
formulaRange = FALSE,
listDataValidation = FALSE,
numberStoredAsText = FALSE,
twoDigitTextYear = FALSE,
unlockedFormula = FALSE
)