https://github.com/danlooo/r-targets-toy-example
https://github.com/danlooo/r-targets-toy-example
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/danlooo/r-targets-toy-example
- Owner: danlooo
- Created: 2023-07-06T14:27:36.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-07T08:11:00.000Z (almost 3 years ago)
- Last Synced: 2025-01-25T12:25:01.819Z (over 1 year ago)
- Language: R
- Size: 396 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# R targets toy example
This project provides a minimal working example to demonstrate multi-step analyses using R targets.
## Features
- Write a complex analysis workflow, one step at a time
- Apply a function across all samples
- Combine results from multiple samples into a single plot
- Run shell commands as targets, also with docker
## Get Started
```bash
git clone https://github.com/danlooo/r-targets-toy-example/
cd r-targets-toy-example
make
```
Open The R project at the root directory and this repository e.g. with RStudio and run the following code in the R console:
```r
library(targets)
library(tidyverse)
tar_make()
tar_read(samples)
```