Skip to content

Commit

Permalink
use hexsticker as logo
Browse files Browse the repository at this point in the history
  • Loading branch information
nanxstats committed Feb 7, 2021
1 parent e6d0a8f commit 5c07d10
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Expand Up @@ -30,4 +30,4 @@ Suggests:
doParallel,
org.Hs.eg.db
Encoding: UTF-8
RoxygenNote: 7.1.0
RoxygenNote: 7.1.1
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# protr <a href="https://nanx.me/protr/"><img src="https://i.imgur.com/D0nDOWs.png" align="right" alt="logo" height="180" width="180" /></a>
# protr <a href="https://nanx.me/protr/"><img src="man/figures/logo.png" align="right" height="180" /></a>

[![Build Status](https://travis-ci.org/nanxstats/protr.svg?branch=master)](https://travis-ci.org/nanxstats/protr)
[![CRAN Version](https://www.r-pkg.org/badges/version/protr)](https://cran.r-project.org/package=protr)
Expand Down
15 changes: 15 additions & 0 deletions inst/logo/logo.R
@@ -0,0 +1,15 @@
library("magick")
library("showtext")

font_add_google("Zilla Slab", "pf", regular.wt = 500)

hexSticker::sticker(
subplot = ~ plot.new(), s_x = 1, s_y = 1, s_width = 0.1, s_height = 0.1,
package = "protr", p_x = 1, p_y = 1, p_size = 11, h_size = 1.2, p_family = "pf",
p_color = "#7DBC8E", h_fill = "#FFF9F2", h_color = "#7DBC8E",
dpi = 320, filename = "man/figures/logo.png"
)

image_read("man/figures/logo.png")

rstudioapi::restartSession()
Binary file added man/figures/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions man/protr-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5c07d10

Please sign in to comment.