WritePar: Write a 'par.txt' File

WriteParR Documentation

Write a 'par.txt' File

Description

WritePar prints its required argument x to a file.

Usage

WritePar(x, filename, digits = 10, nsmall = 1)

Arguments

x

The object to be written, a list with named vector elements, as an object returned from ReadPar.

filename

A character string naming a file to write to. Windows users: Note that Paths are separated by '/', not '\'.

digits

Integer, number of significant digits to export. See format.

nsmall

Integer, number of significant decimals to export. See format.

Details

WritePar writes a 'par.txt' file, typically originating from an imported and modified 'par.txt'.

Value

No return value, called for export to text files.

See Also

ReadPar with a description of the expected content of x.

Examples

te <- ReadPar(filename = system.file("demo_model", "par.txt", package = "HYPEtools"))
# Note that par files lose all comment rows on import
WritePar(x = te, filename = tempfile())



rcapell/RHYPE documentation built on Feb. 28, 2024, 3:11 p.m.