knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
image2xlsx
provides a single function to turn an image into an excel (xlsx) spreadsheet.
It stands on the shoulders of the following giants:
Patches welcomed!
magick
to flatten transparency to a user-specified background colour?openxlsx::conditionalFormatting()
gifanim2xlsx()
???You can install from GitHub with:
# install.packages("devtools") devtools::install_github("coolbutuseless/image2xlsx")
library(image2xlsx) image2xlsx("working/RStudio.png", "man/figures/rlogo.xlsx", height = 20, xoffset = 3, yoffset = 3)
A screenshot of rlogo.xlsx
opened in LibreOffice
knitr::include_graphics("man/figures/rlogo.png")
library(image2xlsx) image2xlsx("working/bender.jpg", "man/figures/bender.xlsx")
A screenshot of bender.xlsx
opened in LibreOffice
knitr::include_graphics("man/figures/bender.png")
library(image2xlsx) image2xlsx("working/mabel.png", "man/figures/mabel.xlsx")
A screenshot of mabel.xlsx
opened in LibreOffice
knitr::include_graphics("man/figures/mabel.png")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.