Learn R Programming

⚠️There's a newer version (0.2.0.1) of this package.Take me there.

drawer

{drawer} is an interactive image editing tool that can be added as part of the HTML in Shiny, R markdown or any type of HTML document. Often times, plots, photos are embedded in the web application/file. {drawer} can take screenshots of these image-like elements, or any part of the HTML document and send to an image editing space called "canvas" to allow users immediately edit the screenshot(s) within the same document. Users can quickly combine, compare different screenshots, upload their own images and maybe make a scientific figure.

Features

  • {drawer} is built with 99% javascript + HTML + CSS, there is no need to have a Shiny server or any other

types of server in the back-end. That's why you can use it in any HTML document. All you need is a modern web browser, like Chrome or Firefox (IE will not work).

  • Shiny and R markdown compatible.
  • Screenshot any element in the page and edit in canvas or download it png or jpg
  • Drag and upload your own images.

Demo

typelink
Pure HTMLhosted online
Pure HTML (github)download and open in your browser
Shinyshinyapp.io
R markdownsyspipe.org

Install

Install release version from CRAN:

install.packages("drawer")

Develop version:

if (!requireNamespace("drawer", quietly=TRUE))
    remotes::install_github("lz100/drawer")

User manual

Read details of drawer on our website.

About drawer

{drawer} is originally part of systemPipeShiny (SPS), the SPS Canvas functionality. However, one cannot use it outside SPS framework and installing the whole SPS framework is heavy. To benefit more people in their own apps/documents, we provide {drawer} as a separate package.

Other packages in systemPipeShiny

PackageDescriptionDocumentsDemo
systemPipeShinySPS main packagewebsitedemo
spsCompsSPS UI and server componentswebsitedemo
spsUtilSPS utility functionswebsiteNA
drawerSPS interactive image editing toolwebsitedemo

Copy Link

Version

Install

install.packages('drawer')

Monthly Downloads

269

Version

0.1.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Le Zhang

Last Published

March 2nd, 2021

Functions in drawer (0.1.0)

toCanvasBtn

Screenshot HTML elements to canvas button
toCanvasTextBtn

Screenshot HTML elements to canvas text-button
canvas

drawer main canvas workbench compinent