Skip to content

Commit

Permalink
Add dev badge
Browse files Browse the repository at this point in the history
  • Loading branch information
kbenoit committed Mar 4, 2020
1 parent dbff249 commit ff5ef91
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
5 changes: 4 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ knitr::opts_chunk$set(
fig.path = "images/"
)
```

```{r echo=FALSE, results="hide", message=FALSE}
library("badger")
```
# readtext: Import and handling for plain and formatted text files

[![CRAN Version](http://www.r-pkg.org/badges/version/readtext)](https://CRAN.R-project.org/package=readtext)
`r badge_devel("quanteda/readtext", "royalblue")`
[![Travis-CI Build Status](https://travis-ci.org/quanteda/readtext.svg?branch=master)](https://travis-ci.org/quanteda/readtext)
[![Build status](https://ci.appveyor.com/api/projects/status/x6dtvh2m7mj3b026/branch/master?svg=true)](https://ci.appveyor.com/project/quanteda/readtext)
[![codecov.io](https://codecov.io/github/quanteda/readtext/coverage.svg?branch=master)][1]
Expand Down
24 changes: 8 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

[![CRAN
Version](http://www.r-pkg.org/badges/version/readtext)](https://CRAN.R-project.org/package=readtext)
[![](https://img.shields.io/badge/devel%20version-0.76-royalblue.svg)](https://github.com/quanteda/readtext)
[![Travis-CI Build
Status](https://travis-ci.org/quanteda/readtext.svg?branch=master)](https://travis-ci.org/quanteda/readtext)
[![Build
Expand Down Expand Up @@ -85,7 +86,7 @@ DATA_DIR <- system.file("extdata/", package = "readtext")
# read in all files from a folder
readtext(paste0(DATA_DIR, "/txt/UDHR/*"))
## readtext object consisting of 13 documents and 0 docvars.
## # Description: data.frame [13 × 2]
## # Description: df[,2] [13 × 2]
## doc_id text
## <chr> <chr>
## 1 UDHR_chinese.txt "\"世界人权宣言\n联合国\"..."
Expand All @@ -105,7 +106,7 @@ texts, using the `text_field` argument:
# read in comma-separated values and specify text field
readtext(paste0(DATA_DIR, "/csv/inaugCorpus.csv"), text_field = "texts")
## readtext object consisting of 5 documents and 3 docvars.
## # Description: data.frame [5 × 5]
## # Description: df[,5] [5 × 5]
## doc_id text Year President FirstName
## <chr> <chr> <int> <chr> <chr>
## 1 inaugCorpus.csv.1 "\"Fellow-Cit\"..." 1789 Washington George
Expand All @@ -132,12 +133,7 @@ all docvars and other meta-data.
``` r
require(quanteda)
## Loading required package: quanteda
## Registered S3 methods overwritten by 'ggplot2':
## method from
## [.quosures rlang
## c.quosures rlang
## print.quosures rlang
## Package version: 1.4.4
## Package version: 2.0.0.9000
## Parallel computing: 2 of 12 threads used.
## See https://quanteda.io for tutorials and examples.
##
Expand All @@ -153,15 +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
##
## Source: /Users/kbenoit/Dropbox (Personal)/GitHub/quanteda/readtext/* on x86_64 by kbenoit
## Created: Wed May 8 08:00:43 2019
## Notes:
## 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
6 changes: 3 additions & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## Purpose: Improves functionality and adds document identifier

Added docid_field argument for columnar data, and makes parsing large JSON objects more robuist.
Minor bug fix.

## Test environments

* local OS X install, R 3.6.0
* ubuntu 18.04 LTS, R 3.6.0
* local OS X install, R 3.6.2
* ubuntu 18.04 LTS, R 3.6.2
* win-builder (devel and release)

## R CMD check results
Expand Down

0 comments on commit ff5ef91

Please sign in to comment.