https://github.com/nx10/httpgd
Asynchronous http server graphics device for R.
https://github.com/nx10/httpgd
Last synced: 20 days ago
JSON representation
Asynchronous http server graphics device for R.
- Host: GitHub
- URL: https://github.com/nx10/httpgd
- Owner: nx10
- License: gpl-2.0
- Created: 2020-05-18T17:54:42.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-16T15:36:16.000Z (11 months ago)
- Last Synced: 2025-04-22T06:49:52.722Z (11 months ago)
- Language: C++
- Homepage: https://nx10.github.io/httpgd
- Size: 7.8 MB
- Stars: 430
- Watchers: 6
- Forks: 22
- Open Issues: 43
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-R - httpgd - Asynchronous http server graphics device for R. (Graphic Displays)
- jimsghstars - nx10/httpgd - Asynchronous http server graphics device for R. (C++)
- awesome-R - httpgd - Asynchronous http server graphics device for R. (Graphic Displays)
README
# `httpgd` 
[](https://github.com/nx10/httpgd/actions/workflows/R-CMD-check.yaml)
[](https://CRAN.R-project.org/package=httpgd)

[](https://app.codecov.io/gh/nx10/httpgd?branch=master)
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`](https://github.com/nx10/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

## Installation
Install from CRAN:
```R
install.packages("httpgd")
```
Or install the development version from GitHub:
```R
remotes::install_github("nx10/httpgd")
```
See [system requirements](https://nx10.dev/httpgd/articles/a00_installation.html#system-requirements) for details.
### Documentation
- [Getting started](https://nx10.dev/httpgd/articles/a01_how-to-get-started.html)
- [Plotting in `unigd`](https://nx10.dev/unigd/articles/b00_guide.html)
- [Function reference](https://nx10.dev/httpgd/reference/index.html)
- [VS Code](https://nx10.dev/httpgd/articles/b01_vscode.html) / [RStudio](https://nx10.dev/httpgd/articles/b02_rstudio.html) / [Docker](https://nx10.dev/httpgd/articles/b03_docker.html)
- [HTTP/WebSocket API](https://nx10.dev/httpgd/articles/c01_httpgd-api.html)
## Contributing
`httpgd` is written in C++, R, and TypeScript. Contributions of any kind are welcome.
## Links
- [Using httpgd in VSCode: A web-based SVG graphics device](https://renkun.me/2020/06/16/using-httpgd-in-vscode-a-web-based-svg-graphics-device/)
## License
Licensed under GPL v2.0. Webserver based on [`CrowCpp/Crow`](https://github.com/CrowCpp/Crow). Vendored license copies are in [`./inst/licenses`](https://github.com/nx10/httpgd/tree/master/inst/licenses).