set_backup: set_backup

Description Usage Arguments Details Value Examples

View source: R/set_backup.R

Description

Creates the directory infrastructure that allows the user to mantain the dataset up-to-date. The function creates a backup folder where all the parameter tables are stored. This folder location can either be specified by the user or it is set to home directory. Inside "daphneg_backup_dataset" the tables are saved in .csv format;tables are nested here is created a second folder "RData" where a copy in .RData format is also stored and this file is the one that is going to be used in the anlaysis.

Usage

1
set_backup(sb.dest = normalizePath("~"))

Arguments

sb.dest

Character. path where to create backup folder. (home directory as default)

Details

Set_backup() is also called by the function add_param() and synchro() in order to make sure the system is always up-to-date before performing every other calculation.

Value

String of the backup folder. It automatically creates the infrastructure for dataset management. It will be used by other functions.

Examples

1
2
3
4
# Example from default folder
set_backup()
# Example from custom folder
set_backup("/home/pejo/Documenti")

pezzcvd/daphneg2 documentation built on Oct. 13, 2021, 10:34 p.m.