refactor: прячем временные файлы в отдельную папку

This commit is contained in:
2026-06-15 16:18:56 +03:00
parent a0340d78e5
commit 2ececc8029
5 changed files with 28 additions and 5 deletions

View File

@@ -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")
}