R/TSRchitectUsersGuide.R

Defines functions TSRchitectUsersGuide

Documented in TSRchitectUsersGuide

#' @title \strong{TSRchitectUsersGuide}
#' @description Opens the TSRchitect User's Guide in a pdf viewer
#' on the user's system.
#'
#' @param view (logical) if TRUE (default) the User's Guide
#' is opened in the local pdf viewer.
#' If FALSE then the full path to the User's Guide is
#' returned.
#'
#' @return if view=FALSE, then the full path to the User's Guide
#' is returned.
#'
#' @examples
#' myPath <- TSRchitectUsersGuide(view=FALSE)
#'
#' @export


TSRchitectUsersGuide <- function(view=TRUE)
#	Find and optionally view TSRchitect User's Guide
{
	f <- system.file("doc", "TSRchitectUsersGuide.pdf", package="TSRchitect")
	if(view) {
		if(.Platform$OS.type == "windows") {
			shell.exec(f)
		} else {
			system(paste(Sys.getenv("R_PDFVIEWER"),f,"&"))
		}
	}
	return(f)
}

Try the TSRchitect package in your browser

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

TSRchitect documentation built on Nov. 8, 2020, 8:11 p.m.