Skip to content

Commit

Permalink
correct line breaks in long block equations
Browse files Browse the repository at this point in the history
  • Loading branch information
levisc8 committed Apr 27, 2022
1 parent 9ab19ae commit 4b7bceb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/make_ipm_report.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#' 1.1, 1.2, 1.3 (iteration expressions), 2.1, 2.2 (vital rate expressions),
#' etc.
#' @param long_eq_length For longer equations, \code{make_ipm_report} tries
#' to wrap these into multiple lines using \code{\\}. This parameter controls
#' to wrap these into multiple lines using \code{\\\\}. This parameter controls
#' the number of characters per line. Default is 65. Ignored when
#' \code{block_eqs = FALSE}.
#'
Expand Down Expand Up @@ -204,7 +204,7 @@ make_ipm_report_body <- function(proto_ipm,

all_lines <- strwrap(eq, width = long_eq_length)

paste(all_lines, collapse = " \\ ")
paste(all_lines, collapse = " \\\\ ")

}

Expand Down
2 changes: 1 addition & 1 deletion man/ipm_report.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4b7bceb

Please sign in to comment.