Nothing
#' Insert a heading
#'
#' @importFrom PythonInR pyExec pySet
#' @param heading The text of the heading
#' @param level Heading level from 1 to 10
#' @param break_before Should a page break before be associated with the heading?
#' @export
rlo_heading <- function(heading, level = 2, break_before = FALSE) {
rlo_scursor()
pyExec(paste0("scursor.setPropertyValue('ParaStyleName', 'Heading ", level, "')"))
if (break_before) {
pyExec("scursor.setPropertyValue('BreakType', 4)") # PAGE_BEFORE
} else {
pyExec("scursor.setPropertyValue('BreakType', 0)") # NONE
}
pySet("heading", heading)
pyExec("text.insertString(scursor, heading, False)")
pyExec("text.insertControlCharacter(scursor, 0, False)")
}
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.