# 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