automatePrj: Automates a CRHM .prj file

View source: R/automatePrj.R

automatePrjR Documentation

Automates a CRHM .prj file

Description

Converts a CRHM .prj file to be able to be run automatically. It adds the settings Auto_Run, Auto_Exit and Log_All to the end of the .prj file, if they are required.

Usage

automatePrj(inputPrjFile = "", outputPrjFile = "", quiet = TRUE, logfile = "")

Arguments

inputPrjFile

Required. Name of the the CRHM .prj to be converted.

outputPrjFile

Optional. If omitted, the input .prj file will be overwritten.

quiet

Optional. Suppresses display of messages, except for errors. If you are calling this function in an R script, you will usually leave quiet=TRUE (i.e. the default). If you are working interactively, you will probably want to set quiet=FALSE.

logfile

Optional. Name of the file to be used for logging the action. Normally not used.

Value

If successful, returns TRUE. If unsuccessful, returns FALSE.

Author(s)

Kevin Shook

See Also

runCRHM

Examples

## Not run: 
result <- automatePrj('Bad Lake 1974-1975.prj','Bad Lake 1974-1975 auto.prj')
## End(Not run)

CentreForHydrology/CRHMr documentation built on April 6, 2024, 5:27 p.m.