Type: | Package |
Title: | A Mini-Dictionary for 'R', 'shiny' and 'rmarkdown' Documents |
Version: | 0.3 |
Maintainer: | Obinna Obianom <idonshayo@gmail.com> |
Description: | 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. In doing this seemlessly, further tools are needed 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. |
License: | MIT + file LICENSE |
URL: | https://r2dictionary.obi.obianom.com |
BugReports: | https://github.com/oobianom/r2dictionary/issues |
Depends: | R (> 3.6) |
Imports: | utils, stringr, rstudioapi, stats |
Suggests: | rmarkdown, knitr, qpdf |
Encoding: | UTF-8 |
VignetteBuilder: | knitr |
Language: | en-US |
LazyData: | false |
RoxygenNote: | 7.2.3 |
NeedsCompilation: | no |
Packaged: | 2025-03-03 14:43:01 UTC; in198 |
Author: | Obinna Obianom [aut, cre] |
Repository: | CRAN |
Date/Publication: | 2025-03-03 15:50:02 UTC |
Concact multiple values
Description
Concact multiple values
Usage
concatAll(..., sep = "; ")
Arguments
... |
the list of values to be concacted |
sep |
the separated for concating |
Examples
a = 5
b = 10
c = "done"
concatAll(a,b,c)
Define words in english
Description
Given a word, a mini-dictionary is searched and results are retrieved with the relevant definitions
Usage
define(term, limitResult = 5, printResult = TRUE)
Arguments
term |
The term for which the definition is requested |
limitResult |
The limit of how many results to show |
printResult |
Print the result to console. If set to FALSE, then results will be return in a vector |
Value
Definition of word if it exists
Examples
## Not run:
wordtodefine <- "smile"
define(wordtodefine)
## End(Not run)
Define Selected Text
Description
Detects a selected word in an open document. This was written for Rmarkdown writing, but it can be used for an open document. Using the addin is the most preferred means to call this function, albeit it can be called directly from the console.
Usage
defineSel()
Value
definition of the selected text
Examples
## Not run:
defineSel()
## End(Not run)
Define Selected Text
Description
Detects a selected word in an open document. This was tested for Rmarkdown writing, but it can be used for an open document. Using the addin is the most preferred means to call this function, albeit it can be called directly from the console.
Usage
defineSelected()
Value
definition of the selected text
Examples
## Not run:
defineSelected()
## End(Not run)
An alias to define words in english
Description
Given a word, a mini-dictionary is searched and results are retrieved with the relevant definitions
Usage
definition(term, limitResult = 5, printResult = TRUE)
Arguments
term |
The term for which the definition is requested |
limitResult |
The limit of how many results to show |
printResult |
Print the result to console. If set to FALSE, then results will be return in a vector |
Value
Definition of word if it exisits
Examples
## Not run:
wordtodefine <- "zipzagged"
definition(wordtodefine)
## End(Not run)
Fetch Selected Text
Description
Fetch Selected Text
Usage
fetchSelectedText()
Value
The selected text and if it contains alphabets
Examples
## Not run:
fetchSelectedText()
## End(Not run)
Check if dictionary is loaded
Description
Check if dictionary is loaded
Usage
isDictionaryLoaded()
Value
Boolean result
Examples
## Not run:
y = isDictionaryLoaded()
y
## End(Not run)
Dictionary content loader
Description
Load the dictionary into global environment
Usage
loadDictionary()
Examples
loadDictionary()
An alias to efine words in english
Description
Given a word, a mini-dictionary is searched and results are retrieved with the relevant definitions
Usage
meaning(term, limitResult = 5, printResult = TRUE)
Arguments
term |
The term for which the definition is requested |
limitResult |
The limit of how many results to show |
printResult |
Print the result to console. If set to FALSE, then results will be return in a vector |
Value
Definition of word if it exisits
Examples
## Not run:
wordtodefine <- "r2shortocde"
meaning(wordtodefine)
## End(Not run)
Split definition character and count
Description
Split definition character and count
Usage
splitSpa12(word)
Arguments
word |
the fullword to split |
Value
whole word from the given text
Examples
## Not run:
wordtodefine <- "smile v"
splitSpa12(wordtodefine)
## End(Not run)