-
Notifications
You must be signed in to change notification settings - Fork 6
/
README.Rmd
43 lines (31 loc) · 1.08 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
---
output:
github_document:
html_preview: false
---
# babelwhale: talk to docker and singularity from R
<!-- badges: start -->
[![R-CMD-check](https://github.com/dynverse/babelwhale/workflows/R-CMD-check/badge.svg)](https://github.com/dynverse/babelwhale/actions)
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/babelwhale)](https://cran.r-project.org/package=babelwhale)
[![Codecov test coverage](https://app.codecov.io/gh/dynverse/babelwhale/branch/master/graph/badge.svg)](https://app.codecov.io/gh/dynverse/babelwhale?branch=master)
<!-- badges: end -->
Specify docker or singularity
```{r}
library(babelwhale)
config <- create_docker_config()
set_default_config(config)
```
Run a command in a container
```{r}
run("alpine", "echo", c("hello"))
```
Get a file from a container
```{r}
read_file("alpine", "/etc/alpine-release")
```
## Latest changes
Check out `news(package = "dynutils")` or [NEWS.md](NEWS.md) for a full list of changes.
<!-- This section gets automatically generated from NEWS.md -->
```{r news, echo=FALSE, results="asis"}
cat(dynutils::recent_news())
```