medizininformatik-initiative / Projectathon7-VHF-DataSHIELD

MIT License
1 stars 1 forks source link

Error loading the new test data #2

Closed fnwirth closed 1 year ago

fnwirth commented 1 year ago

When using the current version of ds-data-import.R to load the test data I receive the following error message

Error:
! Column 16 must be named.
Use .name_repair to specify repair.
Caused by error in `repaired_names()`:
! Names can't be empty.
✖ Empty name found at location 16.
Backtrace:
     ▆
  1. └─global import.observation(...)
  2.   ├─opalr::dictionary.apply(...)
  3.   ├─tibble::as_tibble(data.observation)
  4.   └─tibble:::as_tibble.data.frame(data.observation)
  5.     └─tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
  6.       └─tibble:::set_repaired_names(x, repair_hint = TRUE, .name_repair)
  7.         ├─rlang::set_names(...)
  8.         └─tibble:::repaired_names(...)
  9.           ├─tibble:::subclass_name_repair_errors(...)
 10.           │ └─base::withCallingHandlers(...)
 11.           └─vctrs::vec_as_names(...)
 12.             └─vctrs `<fn>`()
 13.               └─vctrs:::validate_unique(names = names, arg = arg, call = call)
 14.                 └─vctrs:::stop_names_cannot_be_empty(names, call = call)
 15.                   └─vctrs:::stop_names(...)
 16.                     └─vctrs:::stop_vctrs(...)
 17.                       └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = vctrs_error_call(call))
esalehi92 commented 1 year ago

We get the same Error! It had worked before with the previous version of the codes/test-data though

tkirsten commented 1 year ago

Thank you for reporting this error. I found a bug (due to the new data structure) which is solved now. Could you check that on your side, please.

esalehi92 commented 1 year ago

Solved! Thank you