Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: scholar.google -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.9%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
R6 R text and data objects
Basic Info
- Host: GitHub
- Owner: petermeissner
- Language: R
- Default Branch: master
- Size: 1.98 MB
Statistics
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 3
- Releases: 0
Created almost 10 years ago
· Last pushed over 5 years ago
Metadata Files
Readme
README.Rmd
--- output: github_document ---
**Status** [](https://www.travis-ci.com/github/petermeissner/rtext) [](https://ci.appveyor.com/project/petermeissner/rtext) [](https://codecov.io/gh/petermeissner/rtext/tree/master/R) [](https://cran.r-project.org/package=rtext)   ```{r, include=FALSE, cache=FALSE} options("width"=108) pkg <- basename(getwd()) tmp <- packageDescription(pkg) date <- max(as.Date(file.info(list.files("r_package/R/", full.names = TRUE))$mtime) ) ``` ```{r, results='asis', echo=FALSE} cat("#", tmp$Title) ```
**Version** ```{r, results='asis', echo=FALSE} cat(tmp$Version, "
\n", as.character(date)) cat(" (last change to R folder)") ```
**Description** ```{r, results='asis', echo=FALSE} cat(tmp$Description) ```
**Funding** This software was created as part of the "Institutional Design in Western European Democracies" research project, funded by [DFG (Deutsche Forschungsgemeinschaft)](https://gepris.dfg.de/gepris/projekt/146229116), lead by [Ulrich Sieberer](https://scholar.google.com/citations?user=Q_ImhbkAAAAJ) and based at [University Konstanz](https://www.uni-konstanz.de/).
**License** ```{r, results='asis', echo=FALSE} cat(tmp$License, "
") cat(tmp$Author) ```
**Citation** ```{r, results='asis', echo=FALSE} citation(pkg) ```
**BibTex for citing**```{r, results='asis', echo=FALSE} toBibtex(citation(pkg)) ```
**Installation** stable CRAN version ```{r, eval=FALSE} install.packages("rtext") library(rtext) ```
**Package Contents** ```{r} library(rtext) objects("package:rtext") ```
**Contribution** Note, that this package uses a Contributor Code of Conduct. By participating in this project you agree to abide by its terms: https://contributor-covenant.org/version/1/0/0/ (basically this should be a place were people get along with each other respectful and nice because it's simply more fun that way for everybody) Contributions are very much welcome, e.g. in the form of: - **typo fixing** ([edit file directly on Github](https://help.github.com/articles/editing-files-in-another-user-s-repository/)) - **bug reporting** (file an [issue](https://guides.github.com/features/issues/) - after having searched if the issue came up before - as - if possible - [minimal reproducable example](https://stackoverflow.com/help/mcve)) - **extending help files** (e.g. [edit the respective files directly on Github](https://help.github.com/articles/editing-files-in-another-user-s-repository/) or [fork the package](https://help.github.com/articles/fork-a-repo/) and later on make a [pull request](https://help.github.com/articles/using-pull-requests/); note, that the package use [roxygen2](https://r-pkgs.org/man.html) for easing documentation) - **writing example** (e.g. [edit the respective files directly on Github](https://help.github.com/articles/editing-files-in-another-user-s-repository/) or [fork the package](https://help.github.com/articles/fork-a-repo/) and later on make a [pull request](https://help.github.com/articles/using-pull-requests/); note, that the package use [roxygen2](https://r-pkgs.org/man.html) for easing documentation) - **vignette writing** (file an [issue](https://guides.github.com/features/issues/) first so that we can discuss htings than [fork the package](https://help.github.com/articles/fork-a-repo/) and later on make a [pull request](https://help.github.com/articles/using-pull-requests/)) - **test writing** (have a look at the [test coverage](https://codecov.io/gh/petermeissner/rtext/tree/master/R) than [fork the package](https://help.github.com/articles/fork-a-repo/) and later on make a [pull request](https://help.github.com/articles/using-pull-requests/)) - **feature suggestions** (file an [issue](https://guides.github.com/features/issues/) describing the idea, why this is important, possible alternative solutions and an example) - **general discussion** of approach and or implementation (file an [issue](https://guides.github.com/features/issues/)) - implementation **improvements** (file an [issue](https://guides.github.com/features/issues/) naming whats to be improved, why and how)
**Example Usage**
*... starting up ...* ```{r} library(rtext) ```
*... creating a text object ...* ```{r} # initialize (with text or file) quote_text <- "Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read." quote <- rtext$new(text = quote_text) ```
*... setting and getting data ...* ```{r} # add some data quote$char_data_set("first", 1, TRUE) quote$char_data_set("last", quote$char_length(), TRUE) # get the data quote$char_data_get() ```
*... text transformation and data update ...* ```{r} # transform text quote$char_add("[this is an insertion] \n", 47) # get the data again (see, the data moved along with the text) quote$text_get() quote$char_data_get() ```
*... using regular expression for setting data ...* ```{r} # do some convenience coding (via regular expressions) quote$char_data_set_regex("dog_friend", "dog", "dog") quote$char_data_set_regex("dog_friend", "friend", "friend") quote$char_data_get() ```
*... data aggregation via regex ...* ```{r} quote$tokenize_data_regex(split="(dog)|(friend)", non_token = TRUE, join = "full") ```
*... data aggregation by words ...* ```{r} quote$tokenize_data_words(non_token = TRUE, join="full") ```
*... data aggregation by lines ...* ```{r} quote$tokenize_data_lines() ```
*... text plotting with data highlighting ...* ```{r, eval=FALSE} plot(quote, "dog_friend") ``` 
*... adding further data to the plot ...* ```{r, eval=FALSE} plot(quote, "dog_friend") plot(quote, "first", col="steelblue", add=TRUE) plot(quote, "last", col="steelblue", add=TRUE) ``` 
Owner
- Name: Peter Meissner
- Login: petermeissner
- Kind: user
- Location: Hamburg, Germany
- Website: http://petermeissner.de
- Repositories: 99
- Profile: https://github.com/petermeissner
GitHub Events
Total
Last Year
Committers
Last synced: over 3 years ago
All Time
- Total Commits: 148
- Total Committers: 1
- Avg Commits per committer: 148.0
- Development Distribution Score (DDS): 0.0
Top Committers
| Name | Commits | |
|---|---|---|
| petermeissner | r****r@g****m | 148 |
Packages
- Total packages: 1
- Total downloads: unknown
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 3
cran.r-project.org: rtext
R6 Objects for Text and Data
- Homepage: https://github.com/petermeissner/rtext
- Documentation: http://cran.r-project.org/web/packages/rtext/rtext.pdf
- License: MIT + file LICENSE
- Status: removed
-
Latest release: 0.1.22
published over 5 years ago
Rankings
Stargazers count: 26.2%
Forks count: 28.8%
Dependent packages count: 29.8%
Average: 30.1%
Dependent repos count: 35.5%
Last synced:
over 1 year ago
Dependencies
r_package/DESCRIPTION
cran
- R >= 3.0.0 depends
- stringb >= 0.1.13 depends
- R6 >= 2.1.2 imports
- RSQLite >= 1.0.0 imports
- Rcpp >= 0.12.5 imports
- digest >= 0.6.9 imports
- graphics * imports
- hellno >= 0.0.1 imports
- magrittr >= 1.5 imports
- stats * imports
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests