-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
58 lines (42 loc) · 1.77 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
---
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%"
)
```
# sourrr
<!-- badges: start -->
[](https://www.tidyverse.org/lifecycle/#experimental)
[](https://CRAN.R-project.org/package=sourrr)
<!-- badges: end -->
Use {sourrr} to generate sourdough bread recipes using [baker's percentages](https://www.theperfectloaf.com/reference/introduction-to-bakers-percentages/).
## Installation
You can install the development version of {sourrr} from github with:
``` r
# install.packages("remotes")
remotes::install_github("andrewheiss/sourrr")
```
## Example
Suppose you want to bake a 75% hydration loaf that weighs 900 grams using 100% hydration sourdough starter (i.e. you feed it a 1:1 ratio of flour and water). Use the `build_recipe()` function to generate the appropriate recipe:
```{r}
library(sourrr)
build_recipe(final_weight = 900, hydration = 0.75)
```
You can set all the arguments:
```{r}
build_recipe(final_weight = 900, hydration = 0.90,
pct_starter = 0.25, starter_hydration = 1,
pct_salt = 0.02)
```
For now, it's not 100% correct because I add the salt to the final loaf weight. The math is too tricky and I can't figure it out right now with, like, the ongoing global pandemic :shrug:.
If you have an existing recipe, you can use the `calculate_recipe()` function to determine the hydration level:
```{r}
calculate_recipe(flour = 450, water = 320,
starter = 100, starter_hydration = 1, salt = 8)
```