Skip to content

Commit

Permalink
Update comments, NEWS, version for v0.91
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Benoit authored and Kenneth Benoit committed Feb 23, 2024
1 parent 64a65a7 commit 7194e09
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 17 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: readtext
Version: 0.90.1
Version: 0.91
Type: Package
Title: Import and Handling for Plain and Formatted Text Files
Authors@R: c( person("Kenneth", "Benoit", email = "[email protected]", role =
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
readtext v0.91
==============
* Completes changes for compatibility with quanteda 4.0.

readtext v0.90
==============
* Removes the deprecated quanteda functions: `docvars()`, `docnames()`, `texts()`.
Expand Down
4 changes: 2 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ As encoding can also be a challenging issue for those reading in texts, we inclu
```{r, eval = FALSE}
# devtools packaged required to install readtext from Github
devtools::install_github("quanteda/readtext")
remotes::install_github("quanteda/readtext")
```
Linux note: There are a couple of dependencies that may not be available on linux systems. On Debian/Ubuntu try installing these packages by running these commands at the command line:
Expand All @@ -66,7 +66,7 @@ sudo apt-get install libpoppler-cpp-dev # for antiword
The file formats are determined automatically by the filename extensions. If a file has no extension or is unknown, **readtext** will assume that it is plain text. The following command, for instance, will load in all of the files from the subdirectory `txt/UDHR/`:

```{r}
require(readtext)
library("readtext")
# get the data directory from readtext
DATA_DIR <- system.file("extdata/", package = "readtext")
Expand Down
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[![CRAN
Version](https://www.r-pkg.org/badges/version/readtext)](https://CRAN.R-project.org/package=readtext)
[![](https://img.shields.io/badge/devel%20version-0.90.1-royalblue.svg)](https://github.com/quanteda/readtext)
[![](https://img.shields.io/badge/devel%20version-0.91-royalblue.svg)](https://github.com/quanteda/readtext)
[![Downloads](https://cranlogs.r-pkg.org/badges/readtext)](https://CRAN.R-project.org/package=readtext)
[![Total
Downloads](https://cranlogs.r-pkg.org/badges/grand-total/readtext?color=orange)](https://CRAN.R-project.org/package=readtext)
Expand Down Expand Up @@ -51,7 +51,7 @@ functions are handled by the **stringi** package.)

``` r
# devtools packaged required to install readtext from Github
devtools::install_github("quanteda/readtext")
remotes::install_github("quanteda/readtext")
```

Linux note: There are a couple of dependencies that may not be available
Expand All @@ -78,8 +78,7 @@ assume that it is plain text. The following command, for instance, will
load in all of the files from the subdirectory `txt/UDHR/`:

``` r
require(readtext)
## Loading required package: readtext
library("readtext")
# get the data directory from readtext
DATA_DIR <- system.file("extdata/", package = "readtext")

Expand Down Expand Up @@ -132,7 +131,7 @@ all docvars and other meta-data.

``` r
library("quanteda")
## Package version: 4.0.0
## Package version: 3.3.1
## Unicode version: 14.0
## ICU version: 71.1
## Parallel computing: 10 of 10 threads used.
Expand All @@ -150,11 +149,11 @@ summary(corpus_csv, 5)
## Corpus consisting of 5 documents, showing 5 documents:
##
## Text Types Tokens Sentences Year President FirstName
## inaugCorpus.csv.1 625 1540 23 1789 Washington George
## inaugCorpus.csv.1 625 1539 23 1789 Washington George
## inaugCorpus.csv.2 96 147 4 1793 Washington George
## inaugCorpus.csv.3 826 2578 37 1797 Adams John
## inaugCorpus.csv.4 717 1927 41 1801 Jefferson Thomas
## inaugCorpus.csv.5 804 2381 45 1805 Jefferson Thomas
## inaugCorpus.csv.3 826 2577 37 1797 Adams John
## inaugCorpus.csv.4 717 1923 41 1801 Jefferson Thomas
## inaugCorpus.csv.5 804 2380 45 1805 Jefferson Thomas
```

### Text Interchange Format compatibility
Expand Down
11 changes: 6 additions & 5 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
## Purpose: Fix a problem in examples on Solaris
## Purpose

Update suggests dependencies, resolve conflicts with quanteda functions.
* Fixes NOTES on some platforms in v0.90.
* Updates tests for compatibility with quanteda 4.0.

## Test environments

* local OS X install, R 4.3.0
* local macOS 13.2.1, R 4.3.0
* Ubuntu 22.04 LTS, R 4.3.0
* local OS X install, R 4.3.2
* local macOS 14.2.1, R 4.3.2
* Ubuntu 22.04 LTS, R 4.3.2
* Windows release via devtools::check_win_release()
* Windows devel via devtools::check_win_devel()
* Windows oldrelease via devtools::check_win_oldrelease()
Expand Down

0 comments on commit 7194e09

Please sign in to comment.