-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
57 lines (45 loc) · 1.67 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
---
output: github_document
link-citations: yes
editor_options:
canonical: true
markdown:
wrap: 80
references:
location: section
---
```{r setup, echo = FALSE, results = 'hide', message = FALSE, warning = FALSE}
source(fs::path_wd( "vignettes", "_common", ext = "R"))
```
# `S3` <img src="https://raw.githubusercontent.com/tidylab/S3/master/pkgdown/logo.png" align="right" style="float:right; height:75px"/>
<!-- badges: start -->
[![R-CMD-check](https://github.com/tidylab/S3/workflows/R-CMD-check/badge.svg)](https://github.com/tidylab/S3/actions)
[![Codecov test
coverage](https://codecov.io/gh/tidylab/S3/branch/master/graph/badge.svg)](https://codecov.io/gh/tidylab/S3?branch=master)
<!-- badges: end -->
## Overview
`r read.dcf("DESCRIPTION", "Description")[[1]]`
## Installation
You can install `S3` by using:
```{r, eval=FALSE, echo=TRUE}
install.packages("remotes")
remotes::install_github("tidylab/S3")
```
## Features
```{r, eval=TRUE, echo=FALSE, results='markup'}
invisible(
references <- fs::path_wd("vignettes", "function-reference", ext = "csv")
|> read.csv(na.strings = "")
|> dplyr::transmute(
Category = stringr::str_to_sentence(category),
Subcategory = stringr::str_to_sentence(category),
Function = paste0("`", as.character(name), "`"),
S3 = dplyr::case_when(
S3 == "v" ~ sprintf("<span style='color: %s;'>%s</span>", "green", "[v] Implemented"),
S3 == "x" ~ sprintf("<span style='color: %s;'>%s</span>", "red", "[x] Irrelevant"),
TRUE ~ sprintf("<span style='color: %s;'>%s</span>", "orange", "[-] Not Implemented"),
)
)
)
knitr::kable(references)
```