Skip to content

nx10/httpgd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dd6ed3a · Mar 15, 2025
Feb 28, 2025
Jan 21, 2024
Feb 5, 2024
Jan 21, 2024
Jan 21, 2024
Mar 12, 2025
Aug 26, 2022
Jun 15, 2022
Sep 18, 2022
Feb 5, 2024
Oct 11, 2022
Mar 1, 2022
Nov 25, 2021
Mar 15, 2025
Jun 21, 2020
Jan 12, 2021
Sep 17, 2022
Mar 15, 2025
Sep 18, 2022
Dec 29, 2021
Feb 5, 2024
Feb 28, 2022
Jun 15, 2022
Apr 27, 2021
Mar 15, 2025
Feb 5, 2024

Repository files navigation

httpgd

R-CMD-check CRAN downloads Codecov test coverage

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.

Features

  • Fast plotting
  • Interactive plot viewer (client)
  • Supports multiple clients concurrently
  • Plot resizing and history
  • Export various image formats (SVG, PNG, PDF, EPS, ...)
  • Powered by unigd
  • For developers:
    • Stateless asynchronous HTTP/WebSocket API
    • HTML/JavaScript client (TypeScript module)

Demo

Installation

Install httpgd from CRAN:

install.packages("httpgd")

Or get the latest development version from GitHub:

remotes::install_github("nx10/httpgd")

See system requirements for troubleshooting.

Documentation

Contributions welcome!

The various components of httpgd are written in C++, R and TypeScript. We welcome contributions of any kind.

Other areas in need of improvement are testing and documentation.

Links & Articles

About & License

Depends on cpp11.

Webserver based on CrowCpp/Crow.

This project is licensed GPL v2.0.

The HTML client includes Material Design icons by Google which are licensed under the Apache License Version 2.0.

Full copies of the license agreements used by these components are included in ./inst/licenses.