Skip to content

Commit

Permalink
Update {{ stage_name }}.qmd (#33)
Browse files Browse the repository at this point in the history
* Update {{ stage_name }}.qmd

added descriptive comments to clear up the functionality for beginners with dso

* Update {{ stage_name }}.qmd
  • Loading branch information
tschwarzl authored Oct 17, 2024
1 parent 1e716af commit 1f9d953
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/dso/templates/stage/quarto/src/{{ stage_name }}.qmd
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
```{r}
library(conflicted)
library(dso)
#| label: load_libraries
require(conflicted)
require(dso)
```

```{r}
# Set stage dir, compile and load params
#| label: read_params
# read_params sets the stage directory, runs 'dso compile-config'
# and loads params defined in the 'dvc.yaml' 'params' section of the stage
params <- read_params("{{ stage_path }}")
```

```{r}
# Obtain files relative to stage directory, e.g.
#| label: obtain_files_relative_to_stage_dir
# stage_here locates your files relative to the stage path set in read_params
# e.g.
samplesheet <- readr::read_csv(stage_here(params$samplesheet))
```

0 comments on commit 1f9d953

Please sign in to comment.