Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

ocrFile() error #7

Closed
atanasj opened this issue Feb 20, 2018 · 1 comment
Closed

ocrFile() error #7

atanasj opened this issue Feb 20, 2018 · 1 comment

Comments

@atanasj
Copy link

atanasj commented Feb 20, 2018

Hi.

When trying to use the ocrFile() function, I enter the below syntax:

ocrFile(file_path="~/#R_Projects/officeR/ImageOnly.pdf", output_dir="~/#R_Projects/officeR/abbyyR/", exportFormat = "pdfa", save_to_file = TRUE)

However, I get the following error: Error in curl_download(finishedlist$resultUrl[res$id == finishedlist$id], : Argument 'url' must be string.

I found a response to a similar issue at stackoverflow, but running that syntax didn't help either.

Not sure what is going wrong. Any help is greatly appreciated.

@soodoku
Copy link
Member

soodoku commented Feb 20, 2018

This has to be a 'stringsAsFactors' issue. I have pushed a change.

My rec. would be to try the function after running:

options(stringsAsFactors=FALSE)

You can also download the new. v. on Github that should do that. I am looking to move from ldply which seems to create these issues. I very likely have a good solution but need to test.

@soodoku soodoku closed this as completed May 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants