Skip to content

find_smap() Error in rvest::html_table(nodes)[[1]] : subscript out of bounds #81

@rnelson26

Description

@rnelson26

Hello there,

I am having the same issue as documented in the previous threads below. It is unclear from reading these threads how to resolve the issue. I have my NASA Earth Data login info linked to R. I have no issues loading library(smapr) itself. Thanks!

The error is as follows:
find_smap(id = "SPL4SMGP", dates = "2015-03-31", version = 4)
Error in rvest::html_table(nodes)[[1]] : subscript out of bounds

The line of code I try run comes directly from the smapr package tutorial and vignette.

This error commonly comes up on previous threads, but it's not clear to me how it was resolved previously.
#80
#33

I even tried reverting rvest the version mentioned in one of the above threads: devtools::install_version("rvest", version = "0.3.2"). I still had the same error message.

Session Info:
sessionInfo()
R version 4.4.1 (2024-06-14)
Platform: aarch64-apple-darwin20
Running under: macOS 15.1.1

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.4-arm64/Resources/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: America/Los_Angeles
tzcode source: internal

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] rvest_0.3.2 jsonlite_1.8.9 httr_1.4.7 terra_1.8-15 smapr_0.2.1 dplyr_1.1.4

loaded via a namespace (and not attached):
[1] rappdirs_0.3.3 utf8_1.2.4 generics_0.1.3 xml2_1.3.6 stringi_1.8.4
[6] digest_0.6.37 magrittr_2.0.3 pkgload_1.4.0 fastmap_1.2.0 pkgbuild_1.4.4
[11] sessioninfo_1.2.2 urlchecker_1.0.1 promises_1.3.0 purrr_1.0.2 fansi_1.0.6
[16] selectr_0.4-2 codetools_0.2-20 cli_3.6.3 shiny_1.9.1 rlang_1.1.5
[21] ellipsis_0.3.2 remotes_2.5.0 withr_3.0.1 cachem_1.1.0 devtools_2.4.5
[26] tools_4.4.1 memoise_2.0.1 httpuv_1.6.15 curl_6.2.0 vctrs_0.6.5
[31] R6_2.5.1 mime_0.12 lifecycle_1.0.4 stringr_1.5.1 fs_1.6.4
[36] htmlwidgets_1.6.4 usethis_3.0.0 miniUI_0.1.1.1 pkgconfig_2.0.3 pillar_1.9.0
[41] later_1.3.2 glue_1.8.0 profvis_0.3.8 Rcpp_1.0.13 tibble_3.2.1
[46] tidyselect_1.2.1 rstudioapi_0.16.0 xtable_1.8-4 htmltools_0.5.8.1 compiler_4.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions