-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Trying to run the following code:
library(f1dataR)
library(dplyr)use_python("/Users/abdehaas/.pyenv/shims/python3")
sprint2024 <- load_sprint(2024,5)
Error indplyr::select():
! Can't select columns that don't exist.
✖ Columntime...23doesn't exist.
Runrlang::last_trace()to see where the error occurred.
I get the same result when I use:
sprint2025 <- load_sprint(2025,2)
Both races are definitely have sprint races results.
Should be easy to reproduce.
If you need assistance, please let me know.
Regards,
Ab
rlang::last_trace()
<error/vctrs_error_subscript_oob>
Error indplyr::select():
! Can't select columns that don't exist.
✖ Columntime...23doesn't exist.
Backtrace:
▆
- ├─f1dataR::load_sprint(2024, 5)
- │ ├─base::withVisible(eval(mc, parent.frame()))
- │ └─base::eval(mc, parent.frame())
- │ └─base::eval(mc, parent.frame())
- ├─f1dataR (local)
<fn>(season = 2024, round = 5) - │ └─... %>% janitor::clean_names()
- ├─janitor::clean_names(.)
- ├─tibble::as_tibble(.)
- ├─dplyr::mutate(., time_sec = time_to_sec(.data$fastest))
- ├─dplyr::select(...)
- └─dplyr:::select.data.frame(...)
Run rlang::last_trace(drop = FALSE) to see 17 hidden frames.
sessionInfo()
R version 4.4.3 (2025-02-28)
Platform: aarch64-apple-darwin24.2.0
Running under: macOS Sequoia 15.4
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /opt/homebrew/Cellar/r/4.4.3_1/lib/R/lib/libRlapack.dylib; LAPACK version 3.12.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: Europe/Amsterdam
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] dplyr_1.1.4 f1dataR_2.0.1 reticulate_1.41.0.1 duckdb_1.2.1 DBI_1.2.3
loaded via a namespace (and not attached):
[1] Matrix_1.7-2 jsonlite_1.9.1 crayon_1.5.3 compiler_4.4.3 tidyselect_1.2.1 Rcpp_1.0.14
[7] stringr_1.5.1 snakecase_0.11.1 tidyr_1.3.1 png_0.1-8 fastmap_1.2.0 lattice_0.22-6
[13] R6_2.6.1 generics_0.1.3 curl_6.2.2 httr2_1.1.2 tibble_3.2.1 janitor_2.2.1
[19] lubridate_1.9.4 pillar_1.10.1 rlang_1.1.5 cachem_1.1.0 stringi_1.8.4 timechange_0.3.0
[25] memoise_2.0.1 cli_3.6.4 withr_3.0.2 magrittr_2.0.3 grid_4.4.3 rstudioapi_0.17.1
[31] rappdirs_0.3.3 lifecycle_1.0.4 vctrs_0.6.5 glue_1.8.0 purrr_1.0.4 tools_4.4.3
[37] pkgconfig_2.0.3