WriteInfo: Write a 'info.txt' File

WriteInfoR Documentation

Write a 'info.txt' File

Description

WriteInfo writes its required argument x to a file.

Usage

WriteInfo(x, filename)

Arguments

x

The object to be written, a list with named vector elements, as an object returned from ReadInfo using the exact mode.

filename

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

Details

WriteInfo writes an 'info.txt' file, typically originating from an imported and modified 'info.txt'.

Value

No return value, called for export to text files.

See Also

ReadInfo with a description of the expected content of x. AddInfoLine RemoveInfoLine

Examples

te <- ReadInfo(filename = system.file("demo_model",
"info.txt", package = "HYPEtools"), mode = "exact")
WriteInfo(x = te, filename = tempfile())



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