Learn R Programming

phylosim (version 3.0.5)

setLogFile.PhyloSim: Set the name of the file used for logging

Description

Set the name of the file used for logging.

Usage

# S3 method for PhyloSim
setLogFile(this, value, ...)

Arguments

this

A PhyloSim object.

value

The name of the file used for logging.

...

Not used.

Value

The new logfile.

See Also

For more information see PhyloSim.

Examples

Run this code
# NOT RUN {
	# Create a PhyloSim object
	sim<-PhyloSim();
	# get the name of the log file
	getLogFile(sim)
	# modify log file name
	setLogFile(sim,"OldLog.txt")
	# get/set log file name via virtual field
	sim$logFile
	sim$logFile<-"NewLog"
	sim$logFile
 
# }

Run the code above in your browser using DataLab