Closed datapumpernickel closed 2 years ago
Hi,
This looks like the problem I have and my understanding of it is that tabulizer::extract_tables()
just does not take the area
argument into account. I tried passing coordinates by hand or directly passing the list given by tabulizer::locate_areas()
and the result is always the same as not passing an area
at all and the whole page is scanned. Plus no error or warning message is shown which is confusing.
I would love that problem to be solved.
Upon further inspection, I have come to the conclusion, that the area argument is ignored (same as the columns argument), if guess = T
. This should probably be added in the documentation. If you specify guess = F, it does indeed take the area into account...
You're right, thanks a lot @datapumpernickel . Would you like to write a PR addressing this? If not, I'll happily do it.
Thanks @AlbanSagouis, PR looks great. I do not have much experience with writing packages or testthat, so I am impressed. :) Fixed through warning in #150
Please specify whether your issue is about:
First: Thank you very much for this awesome package. It has saved me tremendous headaches in the past!
Now I have a weird behavior, that I cannot really wrap my head around. When I do extract_areas() and locate the table, the result looks fine - I get back a complete table in the usual format. When I do extract_tables() with the exact same area specified, the result is only
list()
. I do not understand, why one returns the table and the other does not. I would appreciate your input!Thanks in advance.
Put your code here: