Skip to content

JaehyunSong/woRdle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

woRdle

{woRdle}: Enjoying Wordle with R package names.

Description

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.

Contact Info

Installation

# 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")

Enjoy!

> 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})
## πŸŸ¨β¬›β¬›β¬›β¬›
## β¬›β¬›β¬›β¬›πŸŸ¨
## β¬›πŸŸ¨β¬›β¬›πŸŸ©
## πŸŸ¨πŸŸ¨β¬›πŸŸ¨πŸŸ¨
## 🟩🟩🟩🟩🟩

Arguments

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) or FALSE.
    • If TRUE, a guess not in package list is not applicable. If FALSE, a guess can have any five charterers.
    • This arguments work only when answer is "installed", "cran", "ranking".

Useful functions

  • 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}.

About

{woRdle}: Enjoying Wordle with R package names.

Resources

License

Stars

Watchers

Forks

Languages