Title: | Run a Ztype Game Loaded with R Functions |
---|---|
Description: | How fast can you type R functions on your keyboard? Find out by running a 'zty.pe' game: export R functions as instructions to type to destroy opponents vessels. |
Authors: | Vincent Guyader |
Maintainer: | Vincent Guyader <[email protected]> |
License: | GPL-3 |
Version: | 0.1.0 |
Built: | 2024-10-27 04:04:19 UTC |
Source: | https://github.com/cran/ztype |
generate a ZType game by puhsing a set of levels on the website.
gen_game(set_of_levels, open = FALSE)
gen_game(set_of_levels, open = FALSE)
set_of_levels |
the set of levels to use |
open |
booleen open browser |
## Not run: require(ztype) require(magrittr) c("dplyr","ggplot2","lubridate") %>% gen_set_of_words() %>% gen_set_of_levels(10) %>% gen_game() %>% browseURL() ## End(Not run)
## Not run: require(ztype) require(magrittr) c("dplyr","ggplot2","lubridate") %>% gen_set_of_words() %>% gen_set_of_levels(10) %>% gen_game() %>% browseURL() ## End(Not run)
generate a set of levels with increasing difficulty
gen_set_of_levels(set_of_words, nb = 25)
gen_set_of_levels(set_of_words, nb = 25)
set_of_words |
a sorted vector of the collection of words to use |
nb |
the number of levels to generate |
require(ztype) require(magrittr) c("dplyr","ggplot2","lubridate") %>% gen_set_of_words() %>% gen_set_of_levels(10) %>% cat()
require(ztype) require(magrittr) c("dplyr","ggplot2","lubridate") %>% gen_set_of_words() %>% gen_set_of_levels(10) %>% cat()
extracts all function names from a given list of packages
gen_set_of_words(packages)
gen_set_of_words(packages)
packages |
character vector. package(s) to parse and extract function names from |
a character vector
## Not run: require(ztype) require(magrittr) c("dplyr","ggplot2","lubridate") %>% gen_set_of_words() ## End(Not run)
## Not run: require(ztype) require(magrittr) c("dplyr","ggplot2","lubridate") %>% gen_set_of_words() ## End(Not run)
generates a collection of words to build a ZType game level
level(set_of_words, quantity, difficulty)
level(set_of_words, quantity, difficulty)
set_of_words |
a sorted vector of the collection of words to use |
quantity |
an integer the number of words to pick in |
difficulty |
an integer reflecting the level's difficulty |
require(ztype) require(magrittr) c("dplyr","ggplot2","lubridate") %>% gen_set_of_words() %>% level(10,50)
require(ztype) require(magrittr) c("dplyr","ggplot2","lubridate") %>% gen_set_of_words() %>% level(10,50)
How fast can you type R functions on your keyboard? Find out by running a 'zty.pe' game: export R functions as instructions to type to destroy opponents vessels.
launch a ZType game using function names of R packages
ztype(packages = c("dplyr", "ggplot2", "lubridate"), nb = 25)
ztype(packages = c("dplyr", "ggplot2", "lubridate"), nb = 25)
packages |
a vector containing installed packages from which extract function names |
nb |
number of levels to design in the ZType game |
## Not run: require(ztype) require(magrittr) ztype() # dplyr, ggplot2 and lubridate c("lubridate") %>% ztype() ## End(Not run) ## Not run: require(ztype) require(magrittr) ztype()# dplyr, ggplot2 and lubridate c("lubridate") %>% ztype() ## End(Not run)
## Not run: require(ztype) require(magrittr) ztype() # dplyr, ggplot2 and lubridate c("lubridate") %>% ztype() ## End(Not run) ## Not run: require(ztype) require(magrittr) ztype()# dplyr, ggplot2 and lubridate c("lubridate") %>% ztype() ## End(Not run)