-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
53 lines (39 loc) · 1.24 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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# userlogo
The goal of userlogo is to customize the useR! logo with
* the chosen colour for the "use" and "!",
* the conference year.
## Installation
``` r
remotes::install_github("lockedata/userlogo")
```
## Example
Default logos.
```{r default}
magick::image_read_svg(system.file("extdata", "userlogo-withyear.svg",
package = "userlogo"))
magick::image_read_svg(system.file("extdata", "userlogo-withyear-square.svg",
package = "userlogo"))
```
Make them pink! This will create 2 PNG files and 2 SVG files in the folder you choose.
```{r pink}
dir <- tempdir()
userlogo::create_logo(colour = "#ffc0cb",
year = 2020,
folder = dir)
magick::image_read_svg(file.path(dir, "userlogo-withyear.svg"))
magick::image_read(file.path(dir, "userlogo-withyear.png"))
magick::image_read_svg(file.path(dir, "userlogo-withyear-square.svg"))
magick::image_read(file.path(dir, "userlogo-withyear-square.png"))
```