Package 'shinipsum'

Title: Lorem-Ipsum-like Helpers for fast Shiny Prototyping
Description: Prototype your shiny apps quickly with these Lorem-Ipsum-like Helpers.
Authors: Colin Fay [cre, aut] , Sebastien Rochette [aut] , ThinkR [cph, fnd]
Maintainer: Colin Fay <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2024-12-04 04:11:50 UTC
Source: https://github.com/ThinkR-open/shinipsum

Help Index


Get a shinipsum example

Description

Get a shinipsum example

Usage

ipsum_examples(which = NULL)

Arguments

which

The example to run. If empty, all the available examples are listed.

Value

A path to the example.

Examples

ipsum_examples()

Lorem text

Description

A long lorem ipsum text

Usage

lorem

Format

An object of class character of length 1.


Lorem test as vector

Description

A long vector of words

Usage

lorem_words

Format

An object of class character of length 13657.


A Random DT

Description

This function creates a random DT::datatable, and can be passed into renderDT & DTOutput.

Usage

random_DT(
  nrow,
  ncol,
  type = c("random", "numeric", "character", "numchar"),
  ...
)

Arguments

nrow

number of row of the output

ncol

number of cols of the output

type

type of the columns, can be "random", "numeric", "character", "numchar". Default is random.

...

arguments to be passed to DT::datatable

Value

a DT


A Random Dygraph

Description

This function returns a dygraph object, which can be passed to renderDygraph and dygraphOutput

Usage

random_dygraph(...)

Arguments

...

args passed to dygraph

Value

a dygraph


A Random ggplot

Description

This function returns a ggplot object, which can be passed to renderPlot and plotOutput

Usage

random_ggplot(
  type = c("random", "point", "bar", "boxplot", "col", "tile", "line", "bin2d",
    "contour", "density", "density_2d", "dotplot", "hex", "freqpoly", "histogram",
    "ribbon", "raster", "tile", "violin")
)

Arguments

type

type of the geom. Can be any of "random", "point", "bar", "boxplot","col", "tile", "line", "bin2d", "contour", "density", "density_2d", "dotplot", "hex", "freqpoly", "histogram", "ribbon", "raster", "tile", "violin" and defines the geom of the ggplot. Default is "random", and chooses a random geom for you.

Value

a ggplot


A Random ggplotly

Description

This function returns a ggplotly object, which can be passed to renderPlotly and plotlyOutput

Usage

random_ggplotly(...)

Arguments

...

arg to pass to random_ggplot.

Value

a ggplotly


A Random Image

Description

This function returns a random image that can be passed into renderImage and plotOutput.

Usage

random_image()

Value

an image


A Random Linear Model

Description

This function returns a model which can be passed to renderText or renderTable if pre-processed appropriately

Usage

random_lm(nobs = 100, nx = 2)

Arguments

nobs

Numeric. number of observation

nx

Numeric. number of variables. Should be lower that nobs

Value

a model output


A Random print output

Description

This function returns a random print output that can be passed to renderPrint and verbatimTextOutput.

Usage

random_print(type = c("character", "numeric", "integer", "model", "table"))

Arguments

type

type of the output ("character", "numeric", "model", "table")

Value

a random print


A Random Table

Description

This function returns a table that can be passed to renderTable and tableOutput.

Usage

random_table(nrow, ncol, type = c("random", "numeric", "character", "numchar"))

Arguments

nrow

number of row of the output

ncol

number of cols of the output

type

type of the columns, can be "random", "numeric", "character", "numchar". Default is random.

Value

a table


A Random Lorem Ipsum

Description

A Random Lorem Ipsum

Usage

random_text(nchars = NULL, nwords = NULL, offset = 0)

Arguments

nchars

number of characters. One of the two params should be left NULL.

nwords

number of words to return. One of the two params should be left NULL.

offset

number of characters or words to offset the result by. Defaults to 0.

Value

a text