create_FolderTemplates function

Create Folder Templates

Create Folder Templates

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 )

Arguments

  • path: character (required ): path to the folder where the templates should be created
  • mode: character (with default): depending on the dataset you can create templates or single grain (SG) or multi-grain (MG) data
  • n_folders: numeric (with default): number of template folders to be created
  • names: character (optional): allows give own names to the subfolders.
  • verbose: logical (with default): enables/disables verbose mode

Returns

If the templates were created successfully on the hard drive, the function returns nothing.

Function version

0.1.0

Examples

create_FolderTemplates(tempdir())

See Also

Generate_DataFile , Generate_DataFile_MG

Author(s)

Sebastian Kreutzer, Geography & Earth Sciences, Aberystwyth University (United Kingdom) , RLum Developer Team

  • Maintainer: Anne Philippe
  • License: GPL-3
  • Last published: 2024-06-16