Title: | A Mini-Dictionary for 'Shiny' and 'Rmarkdown' Documents |
---|---|
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. 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. |
Authors: | Obinna Obianom [aut, cre] |
Maintainer: | Obinna Obianom <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.2 |
Built: | 2024-11-04 03:18:26 UTC |
Source: | https://github.com/oobianom/r2dictionary |
Concact multiple values
concatAll(..., sep = "; ")
concatAll(..., sep = "; ")
... |
the list of values to be concacted |
sep |
the separated for concating |
a = 5 b = 10 c = "done" concatAll(a,b,c)
a = 5 b = 10 c = "done" concatAll(a,b,c)
Given a word, a mini-dictionary is searched and results are retrieved with the relevant definitions
define(term, limitResult = 5, printResult = TRUE)
define(term, limitResult = 5, printResult = TRUE)
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 |
Definition of word if it exists
## Not run: wordtodefine <- "smile" define(wordtodefine) ## End(Not run)
## Not run: wordtodefine <- "smile" define(wordtodefine) ## End(Not run)
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.
defineSel()
defineSel()
definition of the selected text
## Not run: defineSel() ## End(Not run)
## Not run: defineSel() ## End(Not run)
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.
defineSelected()
defineSelected()
definition of the selected text
## Not run: defineSelected() ## End(Not run)
## Not run: defineSelected() ## End(Not run)
Given a word, a mini-dictionary is searched and results are retrieved with the relevant definitions
definition(term, limitResult = 5, printResult = TRUE)
definition(term, limitResult = 5, printResult = TRUE)
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 |
Definition of word if it exisits
## Not run: wordtodefine <- "zipzagged" definition(wordtodefine) ## End(Not run)
## Not run: wordtodefine <- "zipzagged" definition(wordtodefine) ## End(Not run)
Fetch Selected Text
fetchSelectedText()
fetchSelectedText()
The selected text and if it contains alphabets
## Not run: fetchSelectedText() ## End(Not run)
## Not run: fetchSelectedText() ## End(Not run)
Check if dictionary is loaded
isDictionaryLoaded()
isDictionaryLoaded()
Boolean result
## Not run: y = isDictionaryLoaded() y ## End(Not run)
## Not run: y = isDictionaryLoaded() y ## End(Not run)
Load the dictionary into global environment
loadDictionary()
loadDictionary()
loadDictionary()
loadDictionary()
Given a word, a mini-dictionary is searched and results are retrieved with the relevant definitions
meaning(term, limitResult = 5, printResult = TRUE)
meaning(term, limitResult = 5, printResult = TRUE)
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 |
Definition of word if it exisits
## Not run: wordtodefine <- "r2shortocde" meaning(wordtodefine) ## End(Not run)
## Not run: wordtodefine <- "r2shortocde" meaning(wordtodefine) ## End(Not run)
Split definition character and count
splitSpa12(word)
splitSpa12(word)
word |
the fullword to split |
whole word from the given text
## Not run: wordtodefine <- "smile v" splitSpa12(wordtodefine) ## End(Not run)
## Not run: wordtodefine <- "smile v" splitSpa12(wordtodefine) ## End(Not run)