brew_plot_chunks: Create markdown chunks automatically.

brew_plot_chunksR Documentation

Create markdown chunks automatically.

Description

Check the code in the notebook as it contains escapes confusing for generated HTML. Data for chunks is created in parallel and chunks are generated based on the created data, then executed in-place with the 'child' argument of the chunk.

Usage

brew_plot_chunks(listItems, fn, xm.groups, xm.skymapData)

Arguments

listItems

list of items to generate chunks on

fn

function to generate data for the listItems

xm.groups

actual data

xm.skymapData

additional data, here the skymap for the function fn.

Value

chunks to be included in the markdown via 'child' reference

Examples

## Not run: brewed.chunks = brew_plot_chunks(xm.groups_big[1]
,plotAitoffGalacticOverlayBig
,xm.groups_big
,xm.skymap)

# include all brewed chunks
```{r brewing_big_chunks, child = brewed.chunks}

```

## End(Not run)

yazun/dpcgR documentation built on Feb. 2, 2024, 7:12 p.m.