refactor: moving config files to separate folder
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
})()
|
||||
|
||||
Reference in New Issue
Block a user