Title: | Lorem-Ipsum-Like Helpers for Fast Shiny Prototyping |
Version: | 0.1.1 |
Description: | Prototype your shiny apps quickly with these Lorem-Ipsum-like Helpers. |
License: | MIT + file LICENSE |
URL: | https://github.com/Thinkr-open/shinipsum |
BugReports: | https://github.com/Thinkr-open/shinipsum/issues |
Depends: | R (≥ 2.10) |
Imports: | attempt, datasets, DT, dygraphs, ggplot2 (≥ 3.0.0), magrittr, plotly, stats, utils |
Suggests: | testthat |
Encoding: | UTF-8 |
LazyData: | true |
RoxygenNote: | 7.2.3 |
NeedsCompilation: | no |
Packaged: | 2024-02-09 14:59:52 UTC; colinfay |
Author: | Colin Fay |
Maintainer: | Colin Fay <contact@colinfay.me> |
Repository: | CRAN |
Date/Publication: | 2024-02-09 15:50:05 UTC |
shinipsum: Lorem-Ipsum-like Helpers for fast Shiny Prototyping
Description
Prototype your shiny apps quickly with these Lorem-Ipsum-like Helpers.
Author(s)
Maintainer: Colin Fay contact@colinfay.me (ORCID)
Authors:
Sebastien Rochette sebastien@thinkr.fr (ORCID)
Other contributors:
ThinkR [copyright holder, funder]
See Also
Useful links:
Report bugs at https://github.com/Thinkr-open/shinipsum/issues
Pipe operator
Description
See magrittr::%>%
for details.
Usage
lhs %>% rhs
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 |
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 |
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