R/filest.R
create.template.setting.Rd
Create a template for a setting file of function filest
create.template.setting(out.file, no.setting = 1)
An absolute path to a new setting file
A number of simulated settings
An output directory if suggessfully created. Null if a setting file can't be created.
#Create 2 simulated settings
output <- file.path(tempdir(),"example_setting.txt")
res <- create.template.setting(out.file = output, no.setting = 2)
#> The given file exists
#> The setting file will be saved as ... /var/folders/k6/3_1zxcc90dgd495vv1432wf40000gn/T//RtmpIEOawi/example_setting1.txt
print(res)
#> [1] "/var/folders/k6/3_1zxcc90dgd495vv1432wf40000gn/T//RtmpIEOawi/example_setting1.txt"