As far as I know, devtools do not offer possibility to easily and directly build pdf manual. Maybe something like the function below could be added?
#' Create package manual
#'
#' @param pkg package description, can be path or package name. See
#' \code{\link{as.package}} for more information
#' @param path path in which to produce package. If \code{NULL}, defaults to
#' the parent directory of the package.
#'
#' @seealso \code{\link{RdUtils}}
#' @export
build_manual <- function(pkg = ".", path = NULL) {
pkg <- as.package(pkg)
if (is.null(path)) {
path <- dirname(pkg$path)
}
name <- paste0(pkg$package, "_", pkg$version, ".pdf", collapse = " ")
system(paste0("R CMD Rd2pdf --force --output=", path, "/", name, " ", shQuote(pkg$path), collapse = " "))
}
As far as I know, devtools do not offer possibility to easily and directly build pdf manual. Maybe something like the function below could be added?