Skip to contents

Writes a commented YAML profile (pre-filled with the current defaults) you can edit to set persistent options. By default it is written to the per-user config directory (tools::R_user_dir()), which is where ezrsurvey looks first.

Usage

use_ezrsurvey_profile(path = NULL, overwrite = FALSE)

Arguments

path

Destination path. If NULL (default), the per-user config file ezrsurvey.yml is used.

overwrite

Overwrite an existing file. Defaults to FALSE.

Value

Invisibly the path written.

Examples

if (FALSE) { # \dontrun{
use_ezrsurvey_profile()                    # ~/.../R/ezrsurvey/config/ezrsurvey.yml
use_ezrsurvey_profile("~/.ezrsurvey.yml")
} # }