| parameterDump {ramwas} | R Documentation |
Saves parameters in a text file,
prioritizing those listed in toplines.
parameterDump(dir, param, toplines = NULL)
dir |
Directory to save the parameters to.
The file is named |
param |
A list with RaMWAS parameters. Or any list in general. |
toplines |
Names of the elements in |
This function is used internally by multiple RaMWAS functions to record parameters used to run the analysis.
The function creates a file and returns nothing.
This function is not intended to be run by the user.
Andrey A Shabalin andrey.shabalin@gmail.com
See vignettes: browseVignettes("ramwas")
param = ramwasParameters(
number = 123123,
integer = 312L,
textline = "Hi there",
characterVector = c("Hi","Hi again","Bye"),
dataframe = data.frame(a = 1:12, b = 12:1)
)
thedir = tempdir()
parameterDump(thedir, param, c("integer","characterVector"))
cat( readLines( paste0(thedir,"/UsedSettings.txt") ), sep = "\n")
file.remove( paste0(thedir,"/UsedSettings.txt") )