Package 'tada'

Title: Supporting Tools for Tada Science
Description: Suite of tools to support the practice of tada science. It includes an engaging package roulette that is designed to facilitate learning about new packages.
Authors: Romain François [aut, cre, cph]
Maintainer: Romain François <[email protected]>
License: MIT + file LICENSE
Version: 2024.1.0.9000
Built: 2024-07-02 02:46:04 UTC
Source: https://github.com/tadascience/tada

Help Index


package roulette

Description

Runs a packages roulette

Usage

pkg_roulette(
  time = 4,
  n = 100,
  pkgs,
  cols = sample(colors(), n, replace = TRUE)
)

Arguments

time

How long in seconds the roulette runs. It will increasingly speed up.

n

number of packages in the roulette, packages are selected with utils::available.packages(). Ignored if ⁠pkgs=⁠ is given.

pkgs

Packages to show in the roulette.

cols

colors. The default is to pick n colors from the built-in grDevices::colors().

Value

the last package, invisibly

Examples

pkg_roulette(
  time = 2,
  pkgs = sample(c("dplyr", "ggplot2", "data.table", "Rcpp", "arrow", "duckdb"))
)

## Not run: 
 # roulette of 100 available CRAN packages
 pkg_roulette(time = 4, n = 100)

## End(Not run)

Write poems about R packages

Description

Write poems about R packages

Usage

verse(pkg = "ggplot2")

Arguments

pkg

A package to write a poem about

Examples

## Not run: 
  chattr::chattr_use("gpt35")
  tada::verse("ggplot2")

## End(Not run)