A 'HTTP' Server Graphics Device

A graphics device for R that is accessible via network protocols. This package was created to make it easier to embed live R graphics in integrated development environments and other applications. The included 'HTML/JavaScript' client (plot viewer) aims to provide a better overall user experience when dealing with R graphics. The device asynchronously serves graphics via 'HTTP' and 'WebSockets'.


httpgd httpgd logo

R-CMD-check CRAN downloads Codecov test coverage

An HTTP/WebSocket graphics device for R. Serves plots asynchronously and includes an interactive web-based plot viewer. Built to embed live R graphics in IDEs and other applications.

Powered by unigd.

Features

  • Fast, asynchronous plot rendering
  • Interactive plot viewer with history and resizing
  • Multiple concurrent clients
  • Export to SVG, PNG, PDF, EPS, and more
  • Stateless HTTP/WebSocket API

Demo

httpgd demo showing interactive plot viewer

Installation

Install from CRAN:

install.packages("httpgd")

Or install the development version from GitHub:

remotes::install_github("nx10/httpgd")

See system requirements for details.

Documentation

Contributing

httpgd is written in C++, R, and TypeScript. Contributions of any kind are welcome.

Links

License

Licensed under GPL v2.0. Webserver based on CrowCpp/Crow. Vendored license copies are in ./inst/licenses.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("httpgd")

2.1.4 by Florian Rupprecht, 8 months ago


https://github.com/nx10/httpgd, https://nx10.dev/httpgd/


Report a bug at https://github.com/nx10/httpgd/issues


Browse source code at https://github.com/cran/httpgd


Authors: Florian Rupprecht [aut, cre] (ORCID: , Kun Ren [ctb] , Jeroen Ooms [ctb]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports unigd

Suggests testthat, xml2, knitr, rmarkdown, covr, future, httr, jsonlite

Linking to unigd, cpp11, AsioHeaders


See at CRAN