powered by
WritePar prints its required argument x to a file.
WritePar
x
WritePar(x, filename, digits = 10, nsmall = 1)
No return value, called for export to text files.
The object to be written, a list with named vector elements, as an object returned from ReadPar.
ReadPar
A character string naming a file to write to. Windows users: Note that Paths are separated by '/', not '\'.
Integer, number of significant digits to export. See format.
format
Integer, number of significant decimals to export. See format.
WritePar writes a 'par.txt' file, typically originating from an imported and modified 'par.txt'.
ReadPar with a description of the expected content of x.
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())
Run the code above in your browser using DataLab