gesistsa / rang

🐶 (Re)constructing R computational environments
https://gesistsa.github.io/rang/
GNU General Public License v3.0
74 stars 3 forks source link

Executable compenium template #110

Closed chainsawriot closed 11 months ago

chainsawriot commented 1 year ago

Following up this discussion, a usethis style compendium could be considered.

But, there are so many compendium formats available. We need to think about interoperability rather than XKCD 927.

R specific

Sweave

Not R specific but can also be used to run R

(white)papers

chainsawriot commented 1 year ago

How about we just use the structure of Turing (rather than inventing something new):

compendium/
├── CITATION
├── code
│   ├── analyse_data.R
│   └── clean_data.R
├── data_clean
│   └── data_clean.csv
├── data_raw
│   ├── datapackage.json
│   └── data_raw.csv
├── Dockerfile
├── figures
│   └── flow_chart.jpeg
├── LICENSE
├── Makefile
├── paper.Rmd
└── README.md

It means that:

schochastics commented 1 year ago

I was comparing the compendiums the other day and I also like the Turing way best. Lets go with that one.

chainsawriot commented 1 year ago

Maybe inst/rang is a better idea because we can also cover rrtools. We can just have a function called rang::use_rang() to insert our rang things into a format-independent existing compendium directory. We can also provide a function called rang::use_turing() to generate a basic structure.

Potential features / issues

schochastics commented 1 year ago

I like the use_* approach. eventually one could also implement other compendiums like this. Can you help me understand the "is this real" comment. Is that a GHA to build a docker image?

chainsawriot commented 1 year ago

Quote from the readme

this also creates creates a minimal .yml configuration file to activate continuous integration using GitHub Actions. This will attempt to render your qmd document, in a Docker container specified by your Dockerfile, each time you push to GitHub.

With this default Dockerfile

https://github.com/benmarwick/rrtools/blob/f71bddccf00d124512a8f20a4df08cd5e069f53e/inst/templates/Dockerfile#L1-L22

Too good to be true, e.g. no installation of Quarto CLI. But well, it says "attempt".

schochastics commented 1 year ago

oh ok that would be something :-O

chainsawriot commented 1 year ago

Tasks

chainsawriot commented 11 months ago

https://github.com/gesistsa/rang/issues/159#issuecomment-1751719183