if (FALSE) {
# provide a menu
runscript()
# run R/library/FinTS/scripts/ch01.R
runscript(1)
# same as:
runscript(1, "run")
# make a copy as 'ch01.R' in the working directory
runscript(1, 'copy')
# display on console only
runscript(1, 'view')
# display using file.show
runscript(1, 'show')
# where is it?
runscript(1, 'dir')
# run R/library/nlme/scripts/afda-ch01.R
if(require(fda))
runscript(1, fmt = "afda-ch%02d.R", package = "fda")
}
Run the code above in your browser using DataLab