You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error=function(e) {nTables_Process_Error<-TRUE; print(e); cat("\n"); cli_alert_danger('Your input is in the wrong format, reference the table numbers and try again')})
99
109
}
100
110
101
-
# Extract each Table
111
+
# Extract each Table ----
102
112
for (dcinnTables_Process) {
103
113
cat("\n")
104
114
cli_alert_info("Processing Table {dc} of {nTables}")
cli_alert_info("Press enter to accept these auto categorisations, or enter each row number you'd like to edit:")
198
-
cat("\n")
199
-
auto_row<- scan(file="",what=0)
205
+
# extract the rows to edit
206
+
auto_row_Error<-TRUE
207
+
auto_row_OutOfRange<-FALSE
208
+
while (auto_row_Error==TRUE|auto_row_OutOfRange==TRUE) {
209
+
tryCatch({
210
+
cat("\n\n");
211
+
cli_alert_info("Press enter to accept the auto categorisations for table {meta_json$dataModel$childDataClasses[[dc]]$label} or enter each row you'd like to edit:");
error=function(e) {auto_row_Error<-TRUE; print(e); cat("\n"); cli_alert_danger('Your input is in the wrong format, reference the row numbers and try again')})
cli_alert_info("Press enter to accept your categorisations for table {meta_json$dataModel$childDataClasses[[dc]]$label}, or enter each row number you'd like to edit:")
228
-
cat("\n")
229
-
not_auto_row<- scan(file="",what=0)
243
+
244
+
# extract the rows to edit
245
+
not_auto_row_Error<-TRUE
246
+
not_auto_row_OutOfRange<-FALSE
247
+
while (not_auto_row_Error==TRUE|not_auto_row_OutOfRange==TRUE) {
248
+
tryCatch({
249
+
cat("\n\n");
250
+
cli_alert_info("Press enter to accept your categorisations for table {meta_json$dataModel$childDataClasses[[dc]]$label} or enter each row you'd like to edit:");
error=function(e) {not_auto_row_Error<-TRUE; print(e); cat("\n"); cli_alert_danger('Your input is in the wrong format, reference the row numbers and try again')})
0 commit comments