-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.Rmd
46 lines (34 loc) · 1.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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
eval = FALSE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# `flowkernel` project
<!-- badges: start -->
<!-- badges: end -->
This repository contains the `flowkernel` R package, which can be installed as follows:
```{r}
remotes::install_github("jacobbien/flowkernel-project", subdir = "flowkernel")
```
It is implemented using literate programming with [litr](https://jacobbien.github.io/litr-project/). Thus, the source code is in the form of a bookdown, available [here](https://jacobbien.github.io/flowkernel-project/create/).
To modify the code in this R package, modify the `.Rmd` files in the `create-flowkernel/` directory and then (from an R session in this directory) run the following:
```{r}
litr::render("create-flowkernel/index.Rmd")
fs::dir_copy("create-flowkernel/_book", "docs/create", overwrite = TRUE)
fs::dir_delete("create-flowkernel/_book")
fs::dir_copy("create-flowkernel/flowkernel", "flowkernel", overwrite = TRUE)
fs::dir_delete("create-flowkernel/flowkernel")
fs::dir_delete("create-flowkernel/_main_files/")
```
To install the latest version of `litr`, run
```{r}
remotes::install_github("jacobbien/litr-project", subdir = "litr")
```