folder: Create a folder for person files.

Description Usage Arguments Value Examples

View source: R/folder.R

Description

This function creates a folder for person files in the directory folder_dir if no folder gets overwritten or overwrite = TRUE. The folder can be encrypted by specifying password.

Usage

1
folder(password = NULL, folder_dir = ".", overwrite = FALSE)

Arguments

password

The folder's password. Can be NULL for no password.

folder_dir

The directory for the folder. Set folder_dir = "." for the current directory.

overwrite

If overwrite = TRUE, an existing folder in folder_dir gets overwritten.

Value

Returns invisibly the created folder (which is an object of class personfiles). The folder also is saved in folder_dir.

Examples

1
2
3
4
### Create folder without password.
folder(password = NULL, folder_dir = tempdir(), overwrite = TRUE)
### Create folder with password.
folder(password = "secret", folder_dir = tempdir(), overwrite = TRUE)

loelschlaeger/personfiles documentation built on Dec. 21, 2021, 11:45 a.m.