Remove entry erroring
Closed this issue · 1 comments
Bug appeared after deduplication for #85.
Issue
Entry is not deleted because the script exits early with "Error in is_logical(x) : object 'backup_data' not found".
❗ The user intractable popup doesn't happen so crash is happening prior to during line 45.
Expected Behavior
Specified entry is deleted
Reproduce
Use provided files
In remove entry.R
:
bad_rats = c("GP2")
bad_date = "today"
restore = FALSE
I have also tried with bad_date = "20231019"
Error message
source("Z:/Behavior-autoanalysis/admin tools/remove entry.R")
A tibble: 1 × 2
date rat_name
1 20231020 GP2
Error in is_logical(x) : object 'backup_data' not found
Oh, this is because I removed backup from remove entry. Is it essential to be able to not back up the removed data? It was much simpler to make a common code path where backup data is always saved.
Removed the leftover reference to backup_data.