backupScripts: Function make a backup of multiple files to a folder.

View source: R/backupScripts.R

backupScriptsR Documentation

Function make a backup of multiple files to a folder.

Description

Function make a backup of multiple files to a folder.

Usage

backupScripts(files_to_backup, path_files = getwd(), path_backup)

Arguments

files_to_backup

character vector with files to backup.

path_files

path where the files to backup are. By default the actual working directory.

path_backup

path where save the backup files.

Details

If any files of the files_to_backup already exists in path_backup, the function ask for overwrite all the files.

If the name of the files to backup include a directory, like "data/df1.csv", the function create the directory first.

Value

A logical vector of the length of the files_to_backup with TRUE when the file is properly saved and false if doesn't.


Eucrow/sapmuebase documentation built on June 8, 2025, 2:16 a.m.