R/build_manual.R

Defines functions build_manual

Documented in build_manual

#' Creates the pdf manual by calling R2pdf
#'
#' @details
#' Creates a pdf file in \code{path}.
#' @param path: the root folder of the source package.
#' @param package_name: the package name.
#' @return nothing
build_manual<-function(path=getwd(),package_name=basename(path)){
  try(file.remove(file.path(path,paste0(package_name,".pdf"))))
  try(system(paste(shQuote(file.path(R.home("bin"),"R")),"CMD","Rd2pdf",
                shQuote(path),"--output=",file.path(path,paste0(package_name,".pdf")))))}
DanielBonnery/EspleitsPelsPaquets documentation built on April 26, 2022, 9:37 a.m.