martijnvanattekum / learncpp_makebook

Creates an offline book from the learncpp.com website
1 stars 0 forks source link

Out of bound error! #2

Closed abhayhm closed 1 year ago

abhayhm commented 1 year ago

Error message:

[1] "** Starting creation of index table (STEP1)" Error in map(): ℹ In index: 1. Caused by error in .[[1]]: ! subscript out of bounds

Error is in line 77:

tables <- map(table_xpaths, ~homepage %>% read_html() %>% html_nodes(xpath = .x) %>% html_table(fill = TRUE, header = FALSE) %>% .[[1]] %>% #take first element of list .[-1,]) #remove header