Skip to contents

Caching

cache_clear()
Clear data from the passthrough cache for complex or long running operations
cache_delete_stale()
Delete stale files in a cache
cache_download()
Download a file into a local cache.
cached()
A simple pass-through filesystem cache for complex or long running operations

File output

as.character(<rendered_plot>)
Convert a rendered_plot object to a character
as.character(<rendered_table>)
Convert a rendered_table object to a character
code_snip()
Display a code snippet
code_snip_by_line()
Display a code snippet
data_supplement()
Create a function list that allows for supplementary tables (as huxtables) to be added to a XLSX output file.
gg_save_as()
Save a plot to multiple formats
here()
Drop in replacement for here (here pkg)
html_pdf_converter()
Convert html to pdf depending on what is available on the platform
hux_save_as()
Save a table to a variety of formats
knit_print(<rendered_plot>)
Knit a rendered_plot object
knit_print(<rendered_table>)
Knit a rendered_table object
knit_versioned()
Knit to a versioned file in a sub-directory of the project
outputter()
Generate a versioned file name in a subdirectory.
print(<rendered_plot>)
Print a rendered_plot object
print(<rendered_table>)
Print a rendered_table object
std_size
Standard image and paper sizes

Tidy data pipeline utilities

bind_rows_with_factors()
Bind rows for colums with factors
`$`(<checked_list>)
Checked list accessor
cut_integer()
Cut and label an integer valued quantity
get_value_sets()
Get a value set list of a dataframe
intersecting_group_by()
Create a dataframe with groups mathing a range of predicates
rowwise_mutate()
Create new data in a strictly row-wise fashion without vectorisation
summarise_with_totals()
Summarise a subgroup and create a summary row

Ggplot

breaks_log1p()
A scales breaks generator for log1p scales
drawDetails(<watermark>)
Internal function for drawing watermark on ggplots
gg_formatted_table()
Display a long format table as a ggplot object.
gg_hide_X_axis()
Hide the x axis of a plot
gg_hide_Y_axis()
Hide the y axis of a plot
gg_hide_legend()
Hide the legend of a plot
gg_label_size()
Convert a label size from points to ggplot units
gg_layer()
Support for ggplot compositional functions
gg_narrow()
Make a plot narrower
gg_pedantic()
An opinionated set of defaults for plots
gg_resize_legend()
Make the legend smaller
gg_set_X_angle()
Set the angle of the x axis labels of a plot
gg_set_size_defaults()
Set sizes in ggplot uniformly
gg_simple_table()
A simple table as a ggplot patchwork object, no customisation allowed
gg_tiny_theme()
A space saving ggplot theme
gg_watermark()
Add in a watermark to plots
logit_trans()
logit scale
percent_trans()
percentage scale
scale_colour_consistent()
Use a colour scale from one plot in another
scale_colour_subtype()
A discrete colour scale for dividing where there is a natural ordered subgrouping into groups and subgroups
scale_fill_consistent()
Use a colour scale from one plot in another
scale_fill_subtype()
Discrete fill or colour scale where there is a natural ordered subgrouping
scale_x_log1p()
A log1p x scale
scale_x_logit()
A logit x scale
scale_x_percent()
A percentage x scale
scale_y_log1p()
A log1p y scale
scale_y_logit()
A logit y scale
scale_y_percent()
A percentage y scale

Huxtable

as.long_format_table()
Convert a table to long format
fit_col_widths()
Estimate column content widths
hux_auto_widths()
Calculate a sensible column and table width for a huxtable based on its content.
hux_bind_rows()
Bind rows for huxtables
hux_default_layout()
A tidy article theme for huxtables
hux_insert_start()
Insert row at start maintaining format
hux_nest_group()
Make a huxtable narrower
hux_set_caption()
Set a huxtable caption as a first row
hux_set_font()
Set the font family and size in a huxtable globally
hux_set_footer()
Add a footer row as a final row in a huxtable
hux_sprintf()
A sprintf alternative that handles NA values gracefully (ish)
hux_tidy()
Convert a dataframe to a huxtable with nested rows and columns.
hux_to_ggplot()
Convert a huxtable to a ggplot object

Structured lists

as.struct_list()
Cast to a list of structures
map2_struct()
Map over two inputs
map_struct()
Apply a function to each element of a vector
pmap_struct()
Map over multiple input simultaneously (in "parallel")
struct_flatten()
Ensure struct_list is a flat list of structs
c(<struct_list>) rep(<struct_list>) `$`(<struct_list>) `[`(<struct_list>) `[<-`(<struct_list>) `[[`(<struct_list>) `[[<-`(<struct_list>)
Manipulate structured lists

Statistical distributions

dbeta2()
The Beta Distribution
dgamma2()
The Gamma Distribution
dlnorm2()
The Log Normal Distribution
dnbinom2()
The Negative Binomial Distribution
dwedge()
Wedge distribution
pbeta2()
The Beta Distribution
pgamma2()
The Gamma Distribution
plnorm2()
The Log Normal Distribution
pnbinom2()
The Negative Binomial Distribution
pwedge()
Wedge distribution
qbeta2()
The Beta Distribution
qgamma2()
The Gamma Distribution
qlnorm2()
The Log Normal Distribution
qnbinom2()
The Negative Binomial Distribution
qwedge()
Wedge distribution
rbern()
A random Bernoulli sample as a logical value
rbeta2()
The Beta Distribution
rcategorical()
Sampling from the multinomial equivalent of the Bernoulli distribution
rgamma2()
The Gamma Distribution
rlnorm2()
The Log Normal Distribution
rnbinom2()
The Negative Binomial Distribution
rwedge()
Wedge distribution
wedge
Wedge distribution

Font handling functions

check_font()
Ensures a font is available.
fonts_available()
Which fonts are available on this system without hitting webfonts.
gg_find_webfonts()
Find webfonts for a ggplot
glyphmap
The glyphmap dataset
rebuild_fonts()
Rebuild font caches
reset_fonts()
Reset any custom fonts

Others

as_vars()
Reuse tidy-select syntax outside of a tidy-select function
cran() deprecated
Make sure packages available on CRAN are installed
cut_date() deprecated
Places a set of dates withing a regular time series
cut_time() deprecated
Places a set of dates within a regular time series
date_to_time() deprecated
Convert a set of dates to numeric timepoints
full_seq_dates() deprecated
Expand a data vector to the full range
full_seq_times() deprecated
Generate a full regular timepoint sequence
non_cran() deprecated
Make sure github packages are installed.
optional_fn()
Get an optional function without triggering a CRAN warning
pmixnorm() deprecated
Mixture of normal distribution PDFs
qmixnorm() deprecated
Mixture of normal distribution quantiles
sprintf_list()
Sprintf with a list input
time_to_date() deprecated
Convert a set of timepoints to dates
unstable() deprecated
Get unstable version of package