-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
85 lines (58 loc) · 2.35 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# flowme
<!-- badges: start -->
[![Codecov test coverage](https://codecov.io/gh/edalfon/flowme/branch/master/graph/badge.svg)](https://app.codecov.io/gh/edalfon/flowme?branch=master)
[![R-CMD-check](https://github.com/edalfon/flowme/workflows/R-CMD-check/badge.svg)](https://github.com/edalfon/flowme/actions)
<!-- badges: end -->
A little package to quickly include templates for our project structures and
workflows.
## Installation
``` r
# install.packages("remotes") # just in case
remotes::install_github("edalfon/flowme")
```
## Example: setup a {targets} project
A very thin -yet fully functional- template for a `{targets}` project.
You just type:
```{r eval=FALSE}
flowme::use_targets() # alias flowme::targetsme()
```
And get the bare bones infrastructure for a `{targets}` project that
compiles a report using `{bookdown}`. Then you can simply run the pipeline
(`targets::tar_make()`) to compile a sample report that should get you started.
Here's how the sample pipeline looks like:
```{r eval=FALSE}
targets::tar_visnetwork()
```
![](man/figures/README-targets-graph.png)<!-- -->
See some more details in `vignette("targetsme", package = "flowme")`
## Example: setup a {drake} project
Having `flowme` installed, you would only need to call
``` r
flowme::drakeme()
```
It gets you started to an empty but ready-to-fly drake project (including
key dependencies).
Using `drake::vis_drake_graph()` you can peek at the drake dependency graph
for this boilerplate.
![](man/figures/README-drake-graph.png)<!-- -->
This is already a fully functional project that you can run by calling
`drake::r_make()` and it compiles a sample report.
Now, you only need to do your thing in drake plans, include them as indicated in
`_drake.R`, write your results in `Rmd` files within the `report` directory and
simply call `drake::r_make()` to render them all into a book.
See some more details in `vignette("drakeme", package = "flowme")`
## [More details](https://edalfon.github.io/flowme/articles/flowme.html)
More details on the proposed workflow in [`flowme`'s web
site](https://edalfon.github.io/flowme/articles/flowme.html)