Learn R Programming

officedown (version 0.0.5.003)

add_paragraph_settings: add settings for a paragraph

Description

add settings for a paragraph into a Word document.

Usage

add_paragraph_settings(
  align = "left",
  paddings = list(),
  border_widths = list(),
  border_colors = list(),
  border_styles = list(),
  shading = "transparent"
)

Arguments

align

text alignment - a single character value, expected value is one of 'left', 'right', 'center', 'justify'.

paddings

a named list(b for bottom, t for top, l for left and r for right) containing paragraph paddings - 0 or positive integer value.

border_widths

a named list(b for bottom, t for top, l for left and r for right) containing border widths - 0 or positive integer value.

border_colors

a named list(b for bottom, t for top, l for left and r for right) containing border colors - 0 or positive integer value.

border_styles

a named list(b for bottom, t for top, l for left and r for right) containing border styles. Expected values are "none" or "solid" or "dotted" or "dashed".

shading

shading color - a single character value specifying a valid color (e.g. "#000000" or "black").

Examples

Run this code
# NOT RUN {
add_paragraph_settings(paddings = list(t = 120, b = 20),
  border_widths = list(b = 5) )
# }

Run the code above in your browser using DataLab