knitr::opts_chunk$set( collapse = TRUE, message = FALSE, warning = FALSE, comment = "#>", fig.path = "man/README/README-" )
# NOTE: This no longer works after ggplot2 3.0 update because of internals off ggimage::geom_subview(). # NOTE: badgecreatr had a major re-write. viz_void <- # ggplot2::ggplot(data = data.frame(x = 0, y = 0), aes(x = x, y = y)) + # ggplot2::geom_point() + ggplot2::ggplot() + ggplot2::theme_void() dir_logo <- file.path("man", "figures") if(!exists(dir_logo)) { dir.create(dir_logo, recursive = TRUE) } path_logo <- file.path(dir_logo, paste0("logo.png")) hexSticker::sticker( subplot = viz_void, package = "teml", filename = path_logo, p_y = 1.0, p_color = "black", # p_family = "sans", p_size = 40, h_size = 1.5, h_color = "black", h_fill = "yellow" ) logo <- magick::image_read(path_logo) magick::image_write(magick::image_scale(logo, "120"), path = path_logo) # badgecreatr::badgeplacer(status = "wip", githubaccount = "tonyelhabr", githubrepo = "teml")
# teml <img src="man/figures/logo.png" align="right"/>
This package contains functions that I use often in projects.
devtools::install_github("tonyelhabr/teml")
.
Here is a list of all functions in the package.
library("teml") ls("package:teml")
...
# print(covr::package_coverage())
...
Unfortunately, none (right now).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.