| r4fun | R Documentation |
Starts a lightweight collection of short games, puzzles, and relaxation activities bundled with R4VN. The interface can be switched between English and Vietnamese. The function is intentionally independent of active data and statistical workflows.
r4fun(
language = c("en", "vi"),
launch.browser = TRUE,
host = "127.0.0.1",
port = NULL,
...
)
language |
Initial interface language. Use |
launch.browser |
Logical or a browser function passed to
|
host |
Host passed to |
port |
Optional port. |
... |
Additional arguments passed to |
The Playground uses only the optional package shiny. Vietnamese interface
strings are stored in Unicode escape form so the R source file remains
ASCII-only and portable across locales. Games include a collapsible Trick
section with a practical strategy or shortcut for easier play.
Invisibly returns the value from shiny::runApp().
if (interactive() && requireNamespace("shiny", quietly = TRUE)) {
r4fun()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.