-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File is locked after using tabulizer on it #115
Comments
Update with workaround: using So: # locks file
tables <- extract_areas("example.pdf", copy = TRUE)
# does not lock file (workaround)
areas <- locate_areas("example.pdf", copy = TRUE)
tables <- extract_tables("example.pdf", area = areas, guess = FALSE, copy = TRUE) |
I think a way to fix this would be to pass on the value of extract_areas <- function(file,
pages = NULL,
guess = FALSE,
copy = FALSE,
...) {
areas <- locate_areas(file = file, pages = pages, copy = copy)
extract_tables(file = file,
pages = pages,
area = areas,
guess = guess,
copy = copy, # proposed change
...)
} I'm happy to make a pull request for this. But I haven't been able to test it, and am not sure if this is indeed a bug or intended behavior? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please specify whether your issue is about:
a possible bug
a question about package functionality
a suggested code or documentation change, improvement to the code, or feature request
Example below is using
extract_tables()
, however the same happens withlocate_areas()
(which does not callextract_tables()
afaik).Does anyone have a suggestion how the file can be unlocked manually if this is intended behavior? Thank you!
Put your code here:
The text was updated successfully, but these errors were encountered: