Create file and folder structure templates on the user hard drive
as expected by Generate_DataFile and Generate_DataFile_MG. Files and data in the
folders must then be overwritten manually with user data. The function intends to
minimise the errors going along with the creation of these folder structures.
The function uses the example data of BayLum
to create the templates.
create_FolderTemplates(
path,
mode = "SG",
n_folders = 1,
names = paste("Sample_", 1:n_folders),
verbose = TRUE
)
character (required): path to the folder where the templates should be created
character (with default): depending on the dataset you can
create templates or single grain (SG
) or multi-grain (MG
) data
numeric (with default): number of template folders to be created
character (optional): allows give own names to the subfolders.
logical (with default): enables/disables verbose mode
If the templates were created successfully on the hard drive, the function returns nothing.
0.1.0
Kreutzer, S., 2024. create_FolderTemplates(): Create Folder Templates. Function version 0.1.0. In: Christophe, C., Philippe, A., Kreutzer, S., Guérin, G., Baumgarten, F.H., Frerebeau, N., 2024. BayLum: Chronological Bayesian Models Integrating Optically Stimulated. R package version 0.3.2. https://CRAN.r-project.org/package=BayLum
create_FolderTemplates(tempdir())
#>
#> [create_FolderTemplates()]
#> -|
#> |__(dir created:) /var/folders/yz/3s5p1pss4352wtlzt9_bzbp00000gp/T//Rtmpdr0Wy9
#> All templates created. Please modify the parameters according to your data!