diff --git a/R/knit_print.gg.R b/R/knit_print.gg.R index 5ea234b..f2c3a42 100644 --- a/R/knit_print.gg.R +++ b/R/knit_print.gg.R @@ -2,7 +2,8 @@ #' #' @param x The plot object #' @param ... Passed to \code{print}. -#' @param fig_prefix,fig_suffix Character strings passed to \code{cat} before +#' @param fig_prefix See \code{fig_suffix} +#' @param fig_suffix Character strings passed to \code{cat} before #' and after printing \code{x} (if not missing). #' @param filename Save the figure to the filename, if provided #' @param width,height,units passed to \code{ggplot2::ggsave()} @@ -62,7 +63,7 @@ knit_print.gg_list <- function(x, ..., filename=NULL, fig_suffix="\n\n") { } #' Make a gg_list object (a list of ggplots) for knit_printing -#' +#' #' @param x The list #' @return A gg_list object (just adding the class to the list) #' @export diff --git a/man/knit_print.gg.Rd b/man/knit_print.gg.Rd index 3b50a7a..d4aab44 100644 --- a/man/knit_print.gg.Rd +++ b/man/knit_print.gg.Rd @@ -20,7 +20,9 @@ \item{...}{Passed to \code{print}.} -\item{fig_prefix, fig_suffix}{Character strings passed to \code{cat} before +\item{fig_prefix}{See \code{fig_suffix}} + +\item{fig_suffix}{Character strings passed to \code{cat} before and after printing \code{x} (if not missing).} \item{filename}{Save the figure to the filename, if provided} diff --git a/man/knit_print.gg_list.Rd b/man/knit_print.gg_list.Rd index 82255a3..91ae01d 100644 --- a/man/knit_print.gg_list.Rd +++ b/man/knit_print.gg_list.Rd @@ -15,6 +15,9 @@ filename contains "%d" (optionally with sprintf-formatting instructions such as "%03d"), then the filename will be run through \code{sprintf(filename, seq_along(x))} to generate the filename.} + +\item{fig_suffix}{Character strings passed to \code{cat} before +and after printing \code{x} (if not missing).} } \value{ \code{x} invisibly