Error when running `kgl_flow("titanic")`

#4 · closed · 2 comments

View on GitHub ↗

tylerburleigh

When running `kgl_flow("titanic")` I get the following error: ``` • These files will be downloaded: - 'gender_submission' - 'test' - 'train'. Error in `as_tibble()`: ! All columns in a tibble must be vectors. ✖ Column `gender_submission` is a `httr2_response` object. ✖ Column `test` is a `httr2_response` object. ✖ Column `train` is a `httr2_response` object. Run `rlang::last_trace()` to see where the error occurred. ``` This is the backtrace: ``` rlang::last_trace(drop = FALSE) <error/tibble_error_column_scalar_type> Error in `as_tibble()`: ! All columns in a tibble must be vectors. ✖ Column `gender_submission` is a `httr2_response` object. ✖ Column `test` is a `httr2_response` object. ✖ Column `train` is a `httr2_response` object. --- Backtrace: ▆ 1. ├─kaggler::kgl_flow("titanic") 2. │ └─v_to_download %>% ... 3. └─purrr::map_dfr(...) 4. └─dplyr::bind_rows(res, .id = .id) 5. ├─tibble::as_tibble(dots) 6. └─tibble:::as_tibble.list(dots) 7. └─tibble:::lst_to_tibble(x, .rows, .name_repair, col_lengths(x)) 8. └─tibble:::check_valid_cols(x, call = call) 9. └─tibble:::abort_column_scalar_type(...) 10. └─tibble:::tibble_abort(...) 11. └─rlang::abort(x, class, ..., call = call, parent = parent, use_cli_format = TRUE) ```

Comments

KoderKow

Hey @tylerburleigh! Thanks for opening up an issue! It's been well over a year since I stopped working on this package, appreciate you checking it out! I have pushed up changes that should fix the error you are running into. If you are running into issues with the kgl_flow functions, there are also a family of functions for interaction with the Kaggle API that's not built within my test framework. You can see the other set of functions here: https://koderkow.github.io/kaggler/articles/kaggle-api.html Let me know if things are working smoothly for you now and then we can close this! :)

tylerburleigh

Thanks @KoderKow, works great now, and I appreciate the additional guidance.