The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Introduction to the r2dictionary R Package

O.N Obianom

2023-07-12

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 in 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 doing this seemlessly, 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.

Below is an example to demonstrate how the r2dictionary package can be used to retrieve definition of words

Attach the r2dictionary package

First, attach the package to load the dictionary


library("r2dictionary")
#> 
#> r2dictionary: a mini-dictionary for english words

Request for the definition of the term pharmacokinetics

Second, call the define or definition or meaning function to retrieve the definition of the term


define("pharmacokinetics")
#or
definition("pharmacokinetics")
#or
meaning("pharmacokinetics")

Alternative, you may use the addin option

Select a word in a currently opened file. Go to the addins dropdown in RStudio and select “Define selected text”


defineSelected()
#or
defineSel()

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.