refactor: moving config files to separate folder

This commit is contained in:
2026-06-17 16:54:58 +03:00
parent a4d829e3dd
commit a178480912
6 changed files with 9 additions and 8 deletions

View File

@@ -28,6 +28,7 @@ source("renv/activate.R")
cli::cli_code(paste0("R_CONFIG_ACTIVE", "="))
}
Sys.setenv(R_CONFIG_FILE = "config/config.yml")
})()
@@ -35,8 +36,8 @@ source("renv/activate.R")
# при первом запуске скопировать пример конфига
(function() {
if (!file.exists("config.yml")) {
file.copy("config_example.yml", "config.yml")
if (!file.exists("config/config.yml")) {
file.copy("config/config_example.yml", "config/config.yml")
}
})()