Skip to content

Commit 8f5fa2c

Browse files
committed
package logo
1 parent 4247195 commit 8f5fa2c

File tree

6 files changed

+55
-1
lines changed

6 files changed

+55
-1
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
^\.github$
88
^codecov\.yml$
99
^doc$
10+
^logo$
1011
^Meta$
1112
^LICENSE\.md
1213
^paper\.md

README.md

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

2-
# jobqueue
2+
# jobqueue <img src="man/figures/logo.png" align="right" width="120" alt="jobqueue logo" />
33

44
<!-- badges: start -->
55
[![cran](https://www.r-pkg.org/badges/version/jobqueue)](https://CRAN.R-project.org/package=jobqueue)

logo/cartoon.png

1.53 MB
Loading

logo/hexlogo.r

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
2+
library(ggplot2)
3+
4+
ggplot() +
5+
ggpattern::geom_polygon_pattern(
6+
mapping = aes(
7+
x = 1200 * sqrt(3)/2 * c(0, 1, 1, 0, -1, -1),
8+
y = 1200 * .5 * c(2, 1, -1, -2, -1, 1) ),
9+
pattern = 'image',
10+
pattern_type = 'fit',
11+
pattern_filename = 'logo/cartoon.png',
12+
color = 'black',
13+
fill = 'white',
14+
linewidth = 4 ) +
15+
coord_fixed(ratio = 1) +
16+
theme_void() +
17+
theme(rect = element_rect(fill = 'transparent')) +
18+
annotate(
19+
geom = 'text',
20+
label = 'jobqueue',
21+
family = 'Brownland',
22+
size = 20,
23+
x = 0,
24+
y = -580 )
25+
26+
27+
28+
ggsave(
29+
path = 'logo',
30+
filename = 'interprocess.png',
31+
device = 'png',
32+
width = 2000,
33+
height = 2000,
34+
dpi = 380,
35+
units = 'px',
36+
bg = 'transparent' )
37+
38+
39+
library(magick)
40+
library(magrittr)
41+
42+
# pkgdown website sets logo width to 120px
43+
image_read('logo/jobqueue.png') %>%
44+
image_trim() %>%
45+
image_resize('120x') %>%
46+
image_write('man/figures/logo.png')
47+
48+
49+
# height = 200px (150pt) for joss paper
50+
image_read('logo/jobqueue.png') %>%
51+
image_trim() %>%
52+
image_resize('x200') %>%
53+
image_write('joss/figures/logo.png')

logo/jobqueue.png

1.13 MB
Loading

man/figures/logo.png

18.2 KB
Loading

0 commit comments

Comments
 (0)