-
Notifications
You must be signed in to change notification settings - Fork 5
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
check_antiword_installed doesn't find antiword #5
Comments
What does this give you:
|
check_antiword_installed('usr/bin/antiword/antiword.exe')
checking if antiword is installed...
antiword does not appear to be installed in root.
Would you like me to try to install it there?
1: Yes
2: No
Selection: 1Let me try...
Hold on. It may take some time...
Error in check_antiword_installed("usr/bin/antiword/antiword.exe") :
Currently only Windows installs are handled.
Please consider installing yourself...
http://www.winfield.demon.nl
José de Jesus Filho, PhD
Analista de dados jurídicos
(11) 2372-9811 (11) 98522-0210
http://www.josejesus.info
2017-04-17 16:11 GMT-03:00 Tyler Rinker <notifications@github.com>:
… What does this give you:
check_antiword_installed('usr/bin/antiword/antiword.exe')
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALLi8duzKbswNHyTbjhmJY2txySfEYfaks5rw7logaJpZM4M_VpE>
.
|
There are some Windows based checks that need to be extended. I will utilize Unix approaches conditionally. Can you try the following:
|
Sys.which("antiword") antiword
"/usr/bin/antiword"
José de Jesus Filho, PhD
Analista de dados jurídicos
(11) 2372-9811 (11) 98522-0210
http://www.josejesus.info
2017-04-17 23:31 GMT-03:00 Tyler Rinker <notifications@github.com>:
… There are some Windows based checks. I will utilize Unix approaches
conditionally. Can you try the following:
Sys.which("antiword")
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALLi8ULf5HLza3cKCEodJ6LPF-hgEE7Wks5rxCCYgaJpZM4M_VpE>
.
|
Thank you for that. Can you tell me what this gives:
And...to install antiword did you use
|
Yes:
antiword_loc() antiword
"/usr/bin/antiword"
José de Jesus Filho, PhD
Analista de dados jurídicos
(11) 2372-9811 (11) 98522-0210
http://www.josejesus.info
2017-04-18 10:04 GMT-03:00 Tyler Rinker <notifications@github.com>:
… Thank you for that. Can you tell me if this gives the proper location:
antiword_loc <- function(){
myPaths <- c("antiword", "~/.cabal/bin/antiword", "~/Library/Haskell/bin/antiword",
"C:\\PROGRA~1\\antiword\\antiword.exe", "/usr/bin/antiword",
"/Applications/antiword.app/Contents/MacOS/antiword",
file.path(strsplit(getwd(), "(/|\\\\)+")[[1]][1], 'antiword/antiword.exe'))
panloc <- Sys.which(myPaths)
temp <- panloc[panloc != ""]
short.path <- which.min(unlist(lapply(gregexpr("[Aa]ntiword", temp), "[[", 1)))
temp[short.path]
}
antiword_loc()
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALLi8e8E8IImWnuFj5SmBFx8qVCIhRP8ks5rxLTNgaJpZM4M_VpE>
.
|
Thank you I edited the response on GitHub. Can you take a look and answer
the othe rpotion:
#5 (comment)
Thank you for your help.
…On Tue, Apr 18, 2017 at 10:24 AM, José de Jesus Filho < ***@***.***> wrote:
Yes:
antiword_loc() antiword
"/usr/bin/antiword"
José de Jesus Filho, PhD
Analista de dados jurídicos
(11) 2372-9811 (11) 98522-0210
http://www.josejesus.info
2017-04-18 10:04 GMT-03:00 Tyler Rinker ***@***.***>:
> Thank you for that. Can you tell me if this gives the proper location:
>
> antiword_loc <- function(){
>
> myPaths <- c("antiword", "~/.cabal/bin/antiword", "~/Library/Haskell/bin/
antiword",
> "C:\\PROGRA~1\\antiword\\antiword.exe", "/usr/bin/antiword",
> "/Applications/antiword.app/Contents/MacOS/antiword",
> file.path(strsplit(getwd(), "(/|\\\\)+")[[1]][1],
'antiword/antiword.exe'))
>
> panloc <- Sys.which(myPaths)
> temp <- panloc[panloc != ""]
>
> short.path <- which.min(unlist(lapply(gregexpr("[Aa]ntiword", temp),
"[[", 1)))
> temp[short.path]
> }
>
> antiword_loc()
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#5 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/
ALLi8e8E8IImWnuFj5SmBFx8qVCIhRP8ks5rxLTNgaJpZM4M_VpE>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABrnzg9X-3cJbdKsA20F8hECETCLBNleks5rxMe2gaJpZM4M_VpE>
.
|
I installed it using sudo apt-get install antiword
|
One more part can you run:
|
|
…orks on Windows, Linux, and Mac. Thanks to José de Jesus Filho for catching this and working through the process on Linux (see issue #5).
@jjesusfilho can you try reinstalling the dev version
...and try the following:
Hopefully, we can close this if all checks out. |
When I run: I get: antiword appears to be installed. ...Let the .doc extraction begin! But when I run:
checking if antiword is installed... Error in install_anitword_linux() : sudo apt-get install antiword Anyway, It's working now and I was able to read all my doc texts. Thank you very much. By the way, I love your packages and I have promoted them in the Brazilian R community. Cheers. |
Thank you very much. Your support and word of mouth advertisement are greatly appreciated. Can you try one last thing. I think I know the original problem with the path. Try:
I believe it needs a leading slash on Linux. I have added your contribution to the NEWS file as well: https://github.com/trinker/textreadr/blob/master/NEWS |
I got Linux up and running and confirm it was the leading slash. I'm closing this. |
I manually downloaded antiword, but the command check_antiword_installed doesn't find it. I am using linux. If I type in command line "which antiword" I get the following response: usr/bin/antiword. But textreadr can't find it.
The text was updated successfully, but these errors were encountered: