-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
46 lines (33 loc) · 1.81 KB
/
README.Rmd
File metadata and controls
46 lines (33 loc) · 1.81 KB
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
```{r, echo=FALSE}
pkg_name <- desc::desc_get_field("Package","DESCRIPTION")
pkg_name_code <- sprintf('`%s`',pkg_name)
travis = list()
travis$img <- sprintf('https://app.travis-ci.com/rethomics/%s.svg?branch=master',pkg_name)
travis$url <- sprintf('https://app.travis-ci.com/rethomics/%s',pkg_name)
travis$badge <- sprintf("[](%s)", travis$img,travis$url)
codecov = list()
codecov$img <- sprintf('https://img.shields.io/codecov/c/github/rethomics/%s/master.svg',pkg_name)
codecov$url <- sprintf('https://app.codecov.io/github/rethomics/%s?branch=master',pkg_name)
codecov$badge <- sprintf("[](%s)", codecov$img,codecov$url)
cran = list()
cran$img <- sprintf('https://www.r-pkg.org/badges/version/%s',pkg_name)
cran$url <- sprintf('https://cran.r-project.org/package=%s',pkg_name)
cran$badge <- sprintf("[](%s)", cran$img,cran$url)
cran_log = list()
cran_log$img <- sprintf('https://cranlogs.r-pkg.org/badges/%s',pkg_name)
cran_log$url <- sprintf('https://www.rdocumentation.org/packages/%s',pkg_name)
cran_log$badge <- sprintf("[](%s)", cran_log$img,cran_log$url)
all_badges <- list(travis,codecov,cran,cran_log)
all_badges <-paste(sapply(all_badges, function(l)l$badge), collapse = "")
tutorial_url <- sprintf("https://rethomics.github.io/%s.html", pkg_name)
```
# `r pkg_name_code``r all_badges`
`r pkg_name_code` is part of the [rethomics framework](https://rethomics.github.io/).
This README is a short explanation of the basics of `r pkg_name_code`.
A comprehensive tutorial is available on the [rethomics webpage](`r tutorial_url`).
We also provide a [conventional pdf documentation](`r sprintf("https://github.com/rethomics/%s/raw/master/%s.pdf", pkg_name, pkg_name)`).
## Installation
```r
library(devtools)
install_github("rethomics/`r pkg_name`")
```