Parsing with html_table fails when at least one cell contains an empty values for rowspan and/or colspan.
Only the first of each of the following quadruples works currently. Two little changes in table_fill(lines 172-173) suffice to resolve the problem. As per the Contributing page, I didn't make a pull request directly but wanted to raise this as a normal issue first. My proposal can be seen in my fork of rvest: https://github.com/epiben/rvest/commit/8f1a78281cb8a75ad7c839aa81dc9c87b3012ae2.
I thought it would be best to handle this quite particular kind of "default" value where it's needed as opposed to more upstream such as in html_attr.
Parsing with
html_table
fails when at least one cell contains an empty values forrowspan
and/orcolspan
.Only the first of each of the following quadruples works currently. Two little changes in
table_fill
(lines 172-173) suffice to resolve the problem. As per the Contributing page, I didn't make a pull request directly but wanted to raise this as a normal issue first. My proposal can be seen in my fork ofrvest
: https://github.com/epiben/rvest/commit/8f1a78281cb8a75ad7c839aa81dc9c87b3012ae2.I thought it would be best to handle this quite particular kind of "default" value where it's needed as opposed to more upstream such as in
html_attr
.