{woRdle}: Enjoying Wordle with R package names.
An R package woRdle is a word game inspired by Wordle (https://www.nytimes.com/games/wordle/index.html). Unlike original version (Wordle), in woRdle, answer words are taken from R package list in your own PC or CRAN.
- Jaehyun Song, Ph.D.
- Associate Professor in Faculty of Informatics, Kansai University
- E-mail: song@kansai-u.ac.jp
- Homepage: https://www.jaysong.net
# If you have {remotes},
remotes::install_github("JaehyunSong/woRdle")
# If you have {devtools},
devtools::install_github("JaehyunSong/woRdle")
# If you have {pacman},
pacman::p_install_gh("JaehyunSong/woRdle")
> library(woRdle)
> wordle()
## 55 package names retrieved.
> Input your guess (6 times reamined): shiny
> Input your guess (5 times reamined): dplyr
> Input your guess (4 times reamined): utils
> Input your guess (3 times reamined): cjoint
## Guess must have 5 characters. (only alphabets)
> Input your guess (3 times reamined): rvest
> Input your guess (2 times reamined): vctrs
## Congratulation!!
## My Record: 5 (Answer was {VCTRS})
## 🟨⬛⬛⬛⬛
## ⬛⬛⬛⬛🟨
## ⬛🟨⬛⬛🟩
## 🟨🟨⬛🟨🟨
## 🟩🟩🟩🟩🟩
A function wordle()
has two arguments—answer
and strict
.
answer
:"installed"
(default),"cran"
,"ranking"
, or any five character."installed"
: A package list is obtained from your PC."cran"
: A package list is obtained from CRAN."ranking
: Top downloaded package list is obtained from CRAN using an R package, {cranlogs}.- You can set any answer with five characters, for example,
"knitr"
or"seoul"
.
strict
: a logical value;TRUE
(default) orFALSE
.- If
TRUE
, a guess not in package list is not applicable. IfFALSE
, a guess can have any five charterers. - This arguments work only when
answer
is"installed"
,"cran"
,"ranking"
.
- If
wordle_list()
: Display a list of package names with five alphabets.type = "installed"
: A package list is obtained from your PC. (default)type = "cran"
: A package list is obtained from CRAN.type = "ranking"
: Top downloaded package list is obtained from CRAN using an R package, {cranlogs}.