refactor: прячем временные файлы в отдельную папку
This commit is contained in:
@@ -75,7 +75,7 @@ check_and_init_scheme = function() {
|
||||
exist_hash <- tools::md5sum(c(scheme_file, files_to_watch))
|
||||
|
||||
# если первый запуск (нет файла с кешем) инициализация схемы
|
||||
if (!file.exists(hash_file) | !file.exists("scheme.rds") | !all(file.exists(db_files))) {
|
||||
if (!file.exists(hash_file) | !file.exists("temp/scheme.rds") | !all(file.exists(db_files))) {
|
||||
|
||||
init_scheme(scheme_file)
|
||||
|
||||
@@ -155,5 +155,5 @@ init_scheme = function(scheme_file) {
|
||||
cli::cli_abort(c("В одной или нескольких схемах наименования вложенных форм совпадают:", paste("-", names(tab)[tab > 1])))
|
||||
}
|
||||
|
||||
saveRDS(schms, "scheme.rds")
|
||||
saveRDS(schms, "temp/scheme.rds")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user