Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error in otp_surface() #109

Closed
tcbakker opened this issue Oct 16, 2023 · 2 comments
Closed

[BUG] Error in otp_surface() #109

tcbakker opened this issue Oct 16, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@tcbakker
Copy link

Describe the bug
Error in otp_surface():

purrr::map_int(surfaceid, [[, "id")
Error in purrr::map_int():
ℹ In index: 1.
ℹ With name: id.
Caused by error in .x[[...]]:
! subscript out of bounds

Error in purrr::map_int():
ℹ In index: 1.
ℹ With name: id.
Caused by error in .x[[...]]:
! subscript out of bounds

Backtrace:

  1. └─purrr::map_int(surfaceid, [[, "id")
  2. └─purrr:::map_("integer", .x, .f, ..., .progress = .progress)
  3. ├─purrr:::with_indexed_errors(...)
    
  4. │ └─base::withCallingHandlers(...)
    
  5. ├─purrr:::call_with_cleanup(...)
    
  6. └─rlang (local) .f(.x[[i]], ...)
    

To Reproduce
Execute the example at https://cran.r-project.org/web/packages/opentripplanner/vignettes/Analyst.html

Expected behavior
A new surface

System
R version 4.3.1 (2023-06-16)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.0

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.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 datasets utils methods base

other attached packages:
[1] purrr_1.0.2 opentripplanner_0.5.1

loaded via a namespace (and not attached):
[1] vctrs_0.6.4 progressr_0.14.0 cli_3.6.1 rlang_1.1.1
[5] DBI_1.1.3 KernSmooth_2.23-22 renv_1.0.2 generics_0.1.3
[9] sf_1.0-14 glue_1.6.2 rjson_0.2.21 backports_1.4.1
[13] e1071_1.7-13 RcppSimdJson_0.1.10 fansi_1.0.5 grid_4.3.1
[17] classInt_0.4-10 tibble_3.2.1 lifecycle_1.0.3 compiler_4.3.1
[21] dplyr_1.1.3 pkgconfig_2.0.3 Rcpp_1.0.11 rstudioapi_0.15.0
[25] digest_0.6.33 R6_2.5.1 tidyselect_1.2.0 class_7.3-22
[29] utf8_1.2.3 pillar_1.9.0 curl_5.1.0 magrittr_2.0.3
[33] checkmate_2.2.0 tools_4.3.1 proxy_0.4-27 units_0.8-4

Additional context
Maybe the new version of purrr causes this problem.

@tcbakker tcbakker added the bug Something isn't working label Oct 16, 2023
@tcbakker tcbakker changed the title [BUG] [BUG] Error in otp_surface() Oct 16, 2023
@mem48
Copy link
Contributor

mem48 commented Oct 19, 2023

Have you tried the github version of the package?

@mem48 mem48 closed this as completed in 0ff016d Oct 25, 2023
@tcbakker
Copy link
Author

My apologies, I didn't see your response. I will try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants