adletaw / captioner

an R package for generating figure/table numbers and captions, especially for Rmd docs
Other
105 stars 22 forks source link

shorten code #9

Closed adletaw closed 9 years ago

adletaw commented 9 years ago

Consider ways to shorten the code when doing in text figure citations. New function for citing? Perhaps some weird thing such as creating a cite function that calls the captioner function automatically depending on which captioner function was used last... actually a partial would work pretty well for this.

adletaw commented 9 years ago

Use pryr::partial to create a cite function if needed.

citef <- pryr::partial(figs(cite = TRUE))