Package: rustgd 0.0.0.9000

rustgd: Rust-Backed Graphics Device and Viewer Windows for Terminal R Sessions

Provides a Rust-backed graphics device and companion viewer windows for plots, HTML widgets and live URLs, and data frames, so that terminal and editor R sessions without an IDE viewer pane (such as radian, Zed, or Neovim) can display graphics, htmlwidgets, Shiny apps, and data frames in native windows.

Authors:Jose J. Alcocer [aut, cre]

rustgd_0.0.0.9000.tar.gz
rustgd_0.0.0.9000.zip(r-4.7)rustgd_0.0.0.9000.zip(r-4.6)rustgd_0.0.0.9000.zip(r-4.5)
rustgd_0.0.0.9000.tgz(r-4.6-x86_64)rustgd_0.0.0.9000.tgz(r-4.6-arm64)rustgd_0.0.0.9000.tgz(r-4.5-x86_64)rustgd_0.0.0.9000.tgz(r-4.5-arm64)
rustgd_0.0.0.9000.tar.gz(r-4.7-x86_64)rustgd_0.0.0.9000.tar.gz(r-4.6-x86_64)
manual.pdf |manual.html
card.svg |card.png
rustgd/json (API)

# Install 'rustgd' in R:
install.packages('rustgd', repos = c('https://alcocer-jj.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/alcocer-jj/rustgd/issues

On CRAN:

Conda:

rustcargo

1.00 score 9 exports 17 dependencies

Last updated from:c211bd8fee. Checks:3 FAIL, 10 OK. Indexed: yes.
A new build is currently in progress.

TargetResultTimeFilesSyslog
linux-devel-arm64FAIL249
linux-devel-x86_64OK870
source / vignettesOK918
linux-release-arm64FAIL277
linux-release-x86_64OK863
macos-release-arm64OK578
macos-release-x86_64OK1012
macos-oldrel-arm64OK473
macos-oldrel-x86_64OK830
windows-develOK800
windows-releaseOK934
windows-oldrelOK1029
wasm-releaseFAIL175

Exports:rustgdrustgd_browserustgd_disablerustgd_enableunuse_rustgdunuse_rustgd_webviewuse_rustgduse_rustgd_webviewview

Dependencies:arrowassertthatbitbit64clicpp11gluelaterlifecyclemagrittrpurrrR6Rcpprlangtidyselectvctrswithr

Readme and manuals

Help Manual

Help pageTopics
Internal: absolute path to the staged rustgd-frames binary..rustgd_frames_bin
Internal: per-process frames directory, a sibling of the plots and widgets directories. Uses the session temp directory so it works on every platform (Windows has no /tmp); the binary receives this path as an argument..rustgd_frames_dir
Internal: remove the frames directory when R exits..rustgd_frames_register_cleanup
Internal: snapshot the current device's graphics display list, provided rustgd is the active device. Returns NULL silently in any situation where recordPlot is not safe or not meaningful (e.g. the user switched devices mid-expression, or there's nothing to record). Recording is cheap compared to the actual drawing that just happened, so calling it on every drew/new_page flag fire (not just new_page) is fine..rustgd_record_current
Internal: register a one-time finalizer that removes the widget directory when R exits, so nothing is left in the temp folder. The webview binary, if still open, sees its directory vanish on its next poll and exits..rustgd_register_cleanup
Internal: per-process widget directory. Separate from the device's rustgd- directory so the two lifecycles never interfere. Uses the session temp directory so it works on every platform; the binary receives this path as an argument..rustgd_widgets_dir
Start the rustgd graphics device.rustgd
Show a live URL in the rustgd web window.rustgd_browse
Deactivate the rustgd suite in the current session only.rustgd_disable
Activate the rustgd suite in the current session only.rustgd_enable
Internal: process a clear-all signal from the viewer. Empties the plot history, deletes every plot-NNNN.svg in the session dir, and resets the page counter so the next user-issued plot() starts fresh at plot-0001.svg.rustgd_handle_clear_all
Internal: process a clear-active-plot signal from the viewer. The marker file contains the 1-based index of the plot to remove. The entry is dropped from plot_history, the corresponding SVG file is deleted, and any higher-numbered files are renamed down by one so the on-disk numbering stays contiguous and matches the new history indices.rustgd_handle_clear_plot
Internal: process a pending resize if one exists. Reads resize.txt, updates the device dimensions, and re-evaluates every plot in the session history at the new size. Each plot is directed to its own plot-NNNN.svg file via rustgd_set_current_page().rustgd_input_handler
Internal: scheduled poll for resize signals and viewer-close events. Reschedules itself while the device is active.rustgd_poll_resize
Internal: absolute path to the staged rustgd-webview binary.rustgd_webview_bin
Stop using rustgd for plots, web content, and data frames.unuse_rustgd
Stop using the rustgd web viewer.unuse_rustgd_webview
Use rustgd for plots, web content, and data frames.use_rustgd
Use the rustgd web viewer for HTML content.use_rustgd_webview
View a data frame in a rustgd frames window.view