Same case, different issue. There seems to be inconsistent behaviour when trying to pass both header and body arguments. Using both fails to return the 1st column and all headers. Just using body works, but it would ideal to just pass the header argument as one will not always know in advance what row to parse data from.
When passing both the header and body xpaths
u4 <- "/SomePath/6501.Yuho.pdf_table_30.html"
t4 <- htmltab(doc = u4,header="/html/body/table/thead",body = "//tr[position() > 2]")
Warning messages:
1: Argument 'which' left unspecified. Choosing first table.
2: No header generated. Try passing information to header or colNames. Header XPath was /html/body/table/thead
https://www.dropbox.com/home/Public?preview=6501.Yuho.pdf_table_30.html
Same case, different issue. There seems to be inconsistent behaviour when trying to pass both header and body arguments. Using both fails to return the 1st column and all headers. Just using body works, but it would ideal to just pass the header argument as one will not always know in advance what row to parse data from.
When passing both the header and body xpaths