How about in the YAML:

params:
  configuration: NULL
  project_conf: NULL
  data: NULL


Then in the first chunk something like:
```{r data-config}
if(is.null(params$data)){
data(data_ionstar, package = "prolfqua")
 data =  data_ionstar
configuration = data$filtered()$config
}
```


You can use a more ornate expression for these parameters when rendering 
otherwise `rmarkdown::render()`, which I suppose you could call from a Makefile 
if needed when rendering package the vignettes.

Andrew McDavid

Biostatistics and Computational Biology
University of Rochester Medical Center

On Nov 19, 2021, at 6:00 AM, 
bioc-devel-requ...@r-project.org<mailto:bioc-devel-requ...@r-project.org> wrote:

If anyone wonders, why do I need it. By this I can reuse the vignette
with a different dataset.


        [[alternative HTML version deleted]]

_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel

Reply via email to