Skip to content
This repository has been archived by the owner on Feb 14, 2020. It is now read-only.

Betamax (v 1.2)

Compare
Choose a tag to compare
@adletaw adletaw released this 08 Jan 03:18
· 230 commits to master since this release

Caption storage:

captioner() will now store your captions. This will allow you to print a caption more than once without typing it again. For example:

> fig_nums <- captioner()

> fig_nums("my_pretty_figure", "my pretty figure's caption")

"Figure 1: my pretty figure's caption"

Now the caption is stored and can be accessed by:

> fig_nums("my_pretty_figure")

"Figure 1: my pretty figure's caption"

Citation order:

captioner() will now allow you to cite a figure before creating its caption. The ordering of the captions is determined first by citation order, then by caption creation order.

> fig_nums("another_figure", cite = T)

"Figure 2"

> fig_nums("another_figure", "this figure's caption")

"Figure 2: this figure's caption"