<commit_before>`repgen`
===========
report generation in R  

| Name       | Status           |  
| :------------ |:-------------|  
| Linux Build: | [![Build Status](https://travis-ci.org/USGS-R/repgen.svg?branch=master)](https://travis-ci.org/USGS-R/repgen) |
| Windows Build: | [![Build status](https://ci.appveyor.com/api/projects/status/gvqmwkyucwe4g59y?svg=true)](https://ci.appveyor.com/project/jread-usgs/repgen) |  
| Package tests: | [![Coverage Status](https://coveralls.io/repos/USGS-R/repgen/badge.svg)](https://coveralls.io/r/USGS-R/repgen) |  

Package installation 
----------
###Install from github (use for most current code):
```R
devtools::install_github('USGS-R/repgen')
```
###Install tagged release (use for _stable_ package releases):
```R
version <- '0.3.1'
devtools::install_url(sprintf('https://github.com/USGS-R/repgen/archive/v%s.tar.gz', version))
```

###Install production release (use for _production_ package releases):
```R
install.packages("repgen", 
    repos = c("http://owi.usgs.gov/R", "http://cran.us.r-project.org"),
    dependencies = TRUE)
```

###Server install (assumes Rserve and `pandoc` > 1.12.1 version)
```
echo $release_version
tag=$release_version
Rscript -e 'install.packages(c("devtools","httr","jsonlite","knitr", "rmarkdown"), repos="http://cran.us.r-project.org")'
Rscript -e 'library(devtools);install_url("https://github.com/USGS-R/repgen/archive/'${release_version}'.zip")'
```

Example usgage
----------
###Generate an 'extremes' report:
```R
library(repgen)
library(jsonlite)

data <- fromJSON(system.file('extdata',"extremes-example.json",package = 'repgen'))
extremes(data, 'pdf')
```
###Generate a 'vdiagram' report:
```R
json_file <- system.file('extdata','vdiagram-v6.json', package = 'repgen')<commit_msg>Adding more detail for vdiagram report <commit_after>`repgen`
===========
report generation in R  

| Name       | Status           |  
| :------------ |:-------------|  
| Linux Build: | [![Build Status](https://travis-ci.org/USGS-R/repgen.svg?branch=master)](https://travis-ci.org/USGS-R/repgen) |
| Windows Build: | [![Build status](https://ci.appveyor.com/api/projects/status/gvqmwkyucwe4g59y?svg=true)](https://ci.appveyor.com/project/jread-usgs/repgen) |  
| Package tests: | [![Coverage Status](https://coveralls.io/repos/USGS-R/repgen/badge.svg)](https://coveralls.io/r/USGS-R/repgen) |  

Package installation 
----------
###Install from github (use for most current code):
```R
devtools::install_github('USGS-R/repgen')
```
###Install tagged release (use for _stable_ package releases):
```R
version <- '0.3.1'
devtools::install_url(sprintf('https://github.com/USGS-R/repgen/archive/v%s.tar.gz', version))
```

###Install production release (use for _production_ package releases):
```R
install.packages("repgen", 
    repos = c("http://owi.usgs.gov/R", "http://cran.us.r-project.org"),
    dependencies = TRUE)
```

###Server install (assumes Rserve and `pandoc` > 1.12.1 version)
```
echo $release_version
tag=$release_version
Rscript -e 'install.packages(c("devtools","httr","jsonlite","knitr", "rmarkdown"), repos="http://cran.us.r-project.org")'
Rscript -e 'library(devtools);install_url("https://github.com/USGS-R/repgen/archive/'${release_version}'.zip")'
```

Example usgage
----------
###Generate an 'extremes' report:
```R
library(repgen)
library(jsonlite)

data <- fromJSON(system.file('extdata',"extremes-example.json",package = 'repgen'))
extremes(data, 'pdf')
```
###Generate a 'vdiagram' report:
```R
library(repgen)
library(jsonlite)
json_file <- system.file('extdata','vdiagram-v6.json', package = 'repgen')
{'fraction_non_alphanumeric': 0.2261640798226164, 'fraction_numerical': 0.006097560975609756, 'mean_word_length': 4.543778801843318, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3968186', 'n_tokens_mistral': 1322, 'n_tokens_neox': 1263, 'n_words': 209}