Learn R Programming

fun

This is a collection of R games and other funny stuff, such as the classic Mine sweeper and sliding puzzles.

Copy Link

Version

Install

install.packages('fun')

Monthly Downloads

594

Version

0.4

License

GPL

Issues

Pull Requests

Stars

Forks

Maintainer

Yihui Xie

Last Published

February 26th, 2026

Functions in fun (0.4)

tower_of_hanoi

Demonstrate the Tower of Hanoi puzzle in R
tag_cloud

Creating Tag Cloud in R (with Flash and JavaScript)
sliding_puzzle

Sliding puzzle in R
random_password

Generate a random password with a specified length
gomoku

The game of Gomoku, a.k.a Five in a row
shutdown

Shut down the operating system with the command `shutdown'
alzheimer_test

Test Alzheimer's disease by finding out the different character in a character rectangle
fun-package

Use R for Fun
tagData

Tag information of Yihui Xie's English blog
htmlspecialchars

Replace HTML special characters with HTML entities
lights_out

Play the ``Lights Out'' game in R
mine_sweeper

Play the Mine Sweeper game in R