Functions handling sship R package config
Usage
create_config(dir = ".")
write_config(config, dir = ".", filename = "_sship.yml")
get_config(dir = ".")
check_config(config)
Arguments
- dir
string providing path to configuration file
- config
list containing configuration
- filename
string defining config filename
Examples
# Create a new config file from package default
create_config(dir = tempdir())
#> [1] "/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T//Rtmpt0SYTP/_sship.yml file created: fill it in"
# Get config
config <- get_config(system.file("sship.yml", package = "sship"))
# Check if config is valid
check_config(config)
# Write config to file
write_config(config, dir = tempdir())