Skip to content

Convention to skip codes in Rmarkdown when running in DSC #93

@gaow

Description

@gaow

Previously we have implemented support to RMD file as DSC executable modules. Thinking about it a bit more, I think we can make some efforts to bridge between interactive analyses and running in DSC if we invent some conventions for RMD indented to be used in DSC. Since I'm not very sure how RMD is typically used I hope you could suggest me what to do.

Basically, one possibility could be something like this, eg, in DSC:

normal: normal.Rmd
  n: 1000
  ...

And the Rmd file might look like:

Now let's prototype this method. First set parameters:

` ` `{r}
n = 1000
` ` ` 
Then run this method

` ` `{r chunck_name}
x = rnorm(n)
` ` `

where (explain what everything is)

Now let's make a diagnostic plot:

` ` `{r}
plot(x)
` ` `

You see DSC will only need the 2nd code chunk. Does it seem to be useful to have something along the lines of:

normal: normal.Rmd:name
  n:1000

Or even eg,

trunk_normal: normal.Rmd:simulate + normal.Rmd:truncate
  n: 1000

This way will in some way tie DSC with exploratory analysis. If this propose looks useful in practice, could we decide on a syntax for it?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions