-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
42 lines (31 loc) · 1.11 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
---
title: "`r read.dcf('DESCRIPTION', fields = 'Package')[1]`"
author: "`r rworkflows::use_badges()`"
date: "<h4>README updated: <i>`r format( Sys.Date(), '%b-%d-%Y')`</i></h4>"
output:
github_document
---
<!-- To modify Package/Title/Description/Authors fields, edit the DESCRIPTION file -->
```{r, echo=FALSE, include=FALSE}
pkg <- read.dcf("DESCRIPTION", fields = "Package")[1]
title <- read.dcf("DESCRIPTION", fields = "Title")[1]
description <- gsub("\n"," ",read.dcf("DESCRIPTION", fields = "Description")[1])
URL <- read.dcf('DESCRIPTION', fields = 'URL')[1]
owner <- strsplit(URL,"/")[[1]][4]
repo <-strsplit(URL,"/")[[1]][5]
```
## ``r pkg``: `r title`
### `r description`
If you use ``r pkg``, please cite:
<!-- Modify this by editing the file: inst/CITATION -->
> `r utils::citation(pkg)$textVersion`
## Installation
```R
if(!require("remotes")) install.packages("remotes")
remotes::install_github("`r paste(owner,repo,sep='/')`")
library(`r pkg`)
```
## Documentation
### [Website](https://`r owner`.github.io/`r pkg`)
### [Get started](https://`r owner`.github.io/`r pkg`/articles/`r pkg`)
<br>