Learn R Programming

Rsampletrees (version 0.1)

writeArgs: Write arguments for a sampletrees run to a file in the format required for sampletrees

Description

This function is used to write the arguments for a sampletrees run to a file. The arguments are stored in the settings object. The settings are written out in the format required by sampletrees. The name of the settings file can then be used as an argument for the run of sampletrees.

Usage

writeArgs(args, outfile = NULL)

Arguments

args
A settings object of class `pars' containing settings for sampletrees
outfile
The name of the output file for writing the settings

Details

A warning is given if the settings to be written either haven't been checked using checkArgs() or if there is an error. This warning will be given if the list value `clean' is FALSE. However, the settings will be written to the file indicated even with this warning.

References

TBD

See Also

checkArgs()

Examples

Run this code
## Note that this example will give a warning message about the settings 
## not being checked. 

runpars=newArgs(DataFile="sequences_Theta8_Rho8.txt", 
LocationFile="locations_Theta8_Rho8.txt",
RunName="Test-h",FocalPoint=10000, WeightFile="weights-h.txt")
writeArgs(runpars, "test_h_pars")

Run the code above in your browser using DataLab