Skip to content

Instantly share code, notes, and snippets.

@mine-cetinkaya-rundel
Last active October 1, 2023 14:50
Show Gist options
  • Save mine-cetinkaya-rundel/3af3415eab70a65be3791c3dcff6e2e3 to your computer and use it in GitHub Desktop.
Save mine-cetinkaya-rundel/3af3415eab70a65be3791c3dcff6e2e3 to your computer and use it in GitHub Desktop.
Potential solutions for https://elk.zone/fosstodon.org/@3mma@mastodon.social/111159483378645767
---
format: revealjs
execute:
echo: true
engine: knitr
---
# Option 1: `code-line-numbers`
## RStudio Projects
::: columns
::: {.column width="70%"}
```{bash}
#| eval: false
#| code-line-numbers: "1"
-- stem_cell_rna
|__stem_cell_rna.Rproj
|__raw_ data/
|__2019-03-21_donor_1.csv
|__README. md
|__LICENSE
|__R/
|__01_data_processing.R
|__02_exploratory.R
|__functions/
|__101 file import
|__02_normalise.R
```
:::
::: {.column width="30%"}
The project directory
:::
:::
## RStudio Projects
::: columns
::: {.column width="70%"}
```{bash}
#| eval: false
#| code-line-numbers: "2"
-- stem_cell_rna
|__stem_cell_rna.Rproj
|__raw_ data/
|__2019-03-21_donor_1.csv
|__README. md
|__LICENSE
|__R/
|__01_data_processing.R
|__02_exploratory.R
|__functions/
|__101 file import
|__02_normalise.R
```
:::
::: {.column width="30%"}
the .RProj file which is the defining feature of an Studio Project
:::
:::
# Option 2: code annotation
## RStudio Projects
```{bash}
#| eval: false
-- stem_cell_rna # <1>
|__stem_cell_rna.Rproj # <2>
|__raw_ data/
|__2019-03-21_donor_1.csv
|__README. md
|__LICENSE
|__R/
|__01_data_processing.R
|__02_exploratory.R
|__functions/
|__101 file import
|__02_normalise.R
```
1. The project directory
2. the .RProj file which is the defining feature of an Studio Project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment