Learn R Programming

r2dictionary: An R package with english dictionary

A mini-dictionary readily accessible in R

r2dictionary: A mini-dictionary readily accessible within R for Rmarkdown and Shiny

Official site: https://r2dictionary.obi.obianom.com

Despite the predominant use of R for data manipulation and various robust statistical calculations, in recent years, more people from various disciplines are beginning to use R for other purposes. A critical milestone that has enabled large influx of users into the R community is the development of the Tidyverse family of packages and Rmarkdown. With the latter, one can write all kinds of documents and produce output in formats such html and PDF very easily. In the hopes of doing this seamlessly, further tools are needed for such users to easily and freely write in R for all kinds of purposes. The r2dictionary introduces a means for users to directly search for definitions of terms within the R environment. While I was vacating in Boston in 2020, I thought of something to do since covid19 had kept me at home with no option of playing soccer. My way out was R since I could easily finish an app and have it published on CRAN within days. So I began thinking, something that will be cool for people to lookup words easily and include in Rmarkdown files was a dictionary. So, I just spent my weekend writing this package. Hope you like it.

A short tutorial video

Installation and use

# install from CRAN

install.packages("r2dictionary")
# or from Github
devtools::install_github('oobianom/r2dictionary')

# load library

library("r2dictionary")
# or using
quickcode::libraryAll(r2dictionary)

# use - this prints result to console
define("drive")

# use - this returns result as vector
var1 <- define("drive", printResult = F)

Copy Link

Version

Install

install.packages('r2dictionary')

Monthly Downloads

178

Version

0.3

License

MIT + file LICENSE

Maintainer

Obinna Obianom

Last Published

March 3rd, 2025

Functions in r2dictionary (0.3)

definition

An alias to define words in english
meaning

An alias to efine words in english
splitSpa12

Split definition character and count
isDictionaryLoaded

Check if dictionary is loaded
loadDictionary

Dictionary content loader
fetchSelectedText

Fetch Selected Text
define

Define words in english
concatAll

Concact multiple values
defineSelected

Define Selected Text
defineSel

Define Selected Text