Create a template for a setting file of function filest

create.template.setting(out.file, no.setting = 1)

Arguments

out.file

An absolute path to a new setting file

no.setting

A number of simulated settings

Value

An output directory if suggessfully created. Null if a setting file can't be created.

Examples


#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"