R/pmfdR_check_pdflatex.R

#' Function to check if system has pdflatex.exe available
#'
#' @return TRUE if the pdflatex is available, FALSE if not
#' @examples
#' pmfdR_check.pdflatex()
#'
#' @export
pmfdR_check.pdflatex <- function(){

  flag <- FALSE

  try({system('pdflatex -version', intern = T)
    flag <- TRUE}, silent = T)


  return(flag)
}

Try the pmfdR package in your browser

Any scripts or data that you put into this service are public.

pmfdR documentation built on April 15, 2017, 5:01 a.m.