Comments (14)
from textreadr.
What does this give you:
check_antiword_installed('usr/bin/antiword/antiword.exe')
from textreadr.
from textreadr.
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")
from textreadr.
from textreadr.
Thank you for that. Can you tell me what this gives:
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()
file.exists(antiword_loc())
And...to install antiword did you use sudo apt-get install antiword
or did you download the tar ball, extract the contents, navigate to antiword directory and run:
make
sudo make install
from textreadr.
from textreadr.
from textreadr.
One more part can you run:
file.exists(antiword_loc())
from textreadr.
file.exists(antiword_loc())
[1] TRUE
from textreadr.
@jjesusfilho can you try reinstalling the dev version
library(devtools)
install_github('trinker/textreadr')
library(textreadr)
...and try the following:
check_antiword_installed()
check_antiword_installed('usr/bin/antiword')
x <- system.file("docs/Yasmine_Interview_Transcript.doc", package = "textreadr")
read_doc(x)
Hopefully, we can close this if all checks out.
from textreadr.
When I run:
check_antiword_installed()
I get:
checking if antiword is installed...
antiword appears to be installed.
...Let the .doc extraction begin!
But when I run:
check_antiword_installed('usr/bin/antiword')
I get:
checking if antiword is installed...
Error in install_anitword_linux() :
Antiword must be installed first. Please install first:
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.
from textreadr.
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:
check_antiword_installed('/usr/bin/antiword')
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
from textreadr.
I got Linux up and running and confirm it was the leading slash. I'm closing this.
from textreadr.
Related Issues (20)
- Add left.allign arg to textreadr::peek HOT 1
- Encoding issue HOT 8
- Explore officer package for reading in docx HOT 1
- COnsider an ocr argument to read_pdf HOT 1
- Encoding - how to workaround? HOT 4
- Idea for people without supporting libraries for pdftools HOT 3
- Consider a read_pptx reader with officer as the backend
- Consider xml & json readers
- read_document assumes online pdf link is http, and doesn't use read_pdf HOT 1
- read_docx inserts numerical strings at start of line HOT 13
- docs/Hello_World.pptx is disappear? HOT 2
- unzip and xml errors HOT 2
- no text returned for certain URLS
- Package ‘textreadr’ was removed from the CRAN repository HOT 1
- read_odt discards sections headers?
- Use antiword cran package HOT 1
- Replace 'XML' by 'xml2' HOT 2
- consider a generalized html scraper
- transcript functions use textshape `split_transcript` approach HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textreadr.