Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ropensci/antiword
R wrapper for antiword utility
https://github.com/ropensci/antiword
antiword extract-text r r-package rstats
Last synced: 9 days ago
JSON representation
R wrapper for antiword utility
- Host: GitHub
- URL: https://github.com/ropensci/antiword
- Owner: ropensci
- Created: 2017-04-22T12:12:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-13T11:47:47.000Z (7 months ago)
- Last Synced: 2024-04-14T00:36:11.225Z (7 months ago)
- Topics: antiword, extract-text, r, r-package, rstats
- Language: C
- Homepage: https://docs.ropensci.org/antiword
- Size: 299 KB
- Stars: 55
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# antiword
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/antiword)](http://cran.r-project.org/package=antiword)
[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/antiword)](http://cran.r-project.org/web/packages/antiword/index.html)> Extract Text from Microsoft Word Documents
Wraps the [AntiWord](http://www.winfield.demon.nl/) utility to extract text from
Microsoft Word documents. The utility only supports the old `doc` format, not the
new xml based `docx` format. Use the 'xml2' package to read the latter.## Installation
Install the package directly from CRAN:
```r
install.packages("antiword")
```## Example Usage
The function has only a single function `antiword()`. It takes either a local
file path or a URL to a word document:```r
library(antiword)
text <- antiword("https://jeroen.github.io/files/UDHR-english.doc")
cat(text)
``````
Universal Declaration of Human Rights
Plain English Version
All people everywhere have the same human rights, which no one can take
away. This is the basis of freedom, justice and peace in the world.
This Declaration affirms the dignity and worth of all people, and the equal
rights of women and men. The rights described here are the common standard
for all people everywhere.
Every person and nation is asked to support the understanding and respect
for these rights, and to take steps to make sure that they are recognised
and observed everywhere, for all people.
```