-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.Rmd
More file actions
66 lines (46 loc) · 1.39 KB
/
README.Rmd
File metadata and controls
66 lines (46 loc) · 1.39 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# `{css2r}`
<!-- badges: start -->
[](https://lifecycle.r-lib.org/articles/stages.html#stable)
[](https://github.com/ThinkR-open/css2r/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
## Installation
You can install the development version of `{css2r}` like so:
```{r, eval=FALSE}
remotes::install_github("ThinkR-open/css2r")
```
## Extract CSS properties from a webpage
```{r}
library(css2r)
thinkr <- css2r$new(url = "https://thinkr.fr")
```
### Extract CSS files
```{r}
thinkr$domain_css_links
```
### Extract top colors
```{r}
thinkr$top_colors
```
### Show shiny theme
```{r}
cat(thinkr$shiny_code)
```
## Run the application
You can launch the application by running:
```{r, eval = FALSE}
css2r::run_app()
```
## Code of Conduct
Please note that the css2r project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.