R/para.R

Defines functions para

Documented in para

#' Add a Paragraph to an RTF Document
#'
#' Add a paragraph to an rtf (rich text format) document.
#' @param ...
#'   One or more character scalars (separated by commas) of text to add to
#'   document as a single paragraph.
#' @param rtf
#'   An rtf object, default \code{doc}.
#' @param bold
#'   Logical scalar indicating if paragraph should use bold font, default FALSE.
#' @param italic
#'   Logical scalar indicating if paragraph should use italic font,
#'   default FALSE.
#' @details
#'   The specified heading is written to the rtf file.
#' @references
#'   This is a copy of the \code{para} function from the
#'   \href{https://github.com/JVAdams/GLFC}{[GLFC]} package.
#' @seealso
#'   \code{\link{startrtf}} for an example, \code{\link{heading}},
#'   \code{\link{tabl}}, \code{\link{figu}},
#'   \code{\link{endrtf}},
#'   \code{\link[rtf]{RTF}}.
#' @import
#'   rtf
#' @export

para <- function(..., rtf=doc, bold=FALSE, italic=FALSE) {
  startParagraph(this=rtf)
  addText(this=rtf, ..., bold=bold, italic=italic)
  endParagraph(this=rtf)
  addNewLine(this=rtf)
  }
JVAdams/EchoNet2Fish documentation built on Feb. 15, 2021, 4:27 a.m.