Skip to content

Commit c87fa25

Browse files
store logo in manual and use it in README
1 parent 07b97d6 commit c87fa25

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ revdep/
1414
touchstone/*
1515
!touchstone/config.json
1616
!touchstone/script.R
17+
README.html

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ knitr::opts_chunk$set(
1515
)
1616
```
1717

18-
# styler
18+
# styler <img src="man/figures/logo.png" align="right" width="240" />
1919

2020
<!-- badges: start -->
2121

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
<!-- README.md is generated from README.Rmd. Please edit that file -->
33

4-
# styler
4+
# styler <img src="man/figures/logo.png" align="right" width="240" />
55

66
<!-- badges: start -->
77

hextools/hexsticker.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ project_root <- here::here()
1414

1515
# https://www.flaticon.com/free-icon/suit_1355137
1616
image <- image_read(file.path(project_root, "hextools", "suit.png"))
17+
manual_logo_path <- file.path(project_root, "man", "figures", "logo.png")
1718

1819
sticker(
1920
# image
@@ -31,16 +32,15 @@ sticker(
3132
p_y = 0.95,
3233
angle = 90,
3334
# image
34-
h_color = "white",
35+
h_color = "black",
3536
h_fill = "#11235A",
3637
# package URL
3738
url = " https://styler.r-lib.org/",
3839
u_size = 10,
3940
u_color = "#F6ECA9",
4041
# saving sticker
41-
filename = file.path(project_root, "hextools", "logo.png"),
42+
filename = manual_logo_path,
4243
dpi = 600,
4344
)
4445

45-
manual_logo_path <- file.path(project_root, "man", "figures", "logo.png")
46-
fs::file_move("logo.png", manual_logo_path)
46+
rmarkdown::render("README.Rmd")

hextools/logo.png

-119 KB
Binary file not shown.

man/figures/logo.png

-3.04 KB
Loading

0 commit comments

Comments
 (0)