Skip to content

Document offline export with Plotly bundles - #2513

Open
M-Colley wants to merge 1 commit into
plotly:masterfrom
M-Colley:docs/2498-offline-partial-bundles
Open

M-Colley wants to merge 1 commit into
plotly:masterfrom
M-Colley:docs/2498-offline-partial-bundles

Conversation

@M-Colley

@M-Colley M-Colley commented Dec 5, 2026

Copy link
Copy Markdown

Summary

Fixes #2498. Document where partial_bundle() gets its JavaScript and how to export a widget while offline.

Full bundle    -> JavaScript included with the R package
local = TRUE   -> session cache or an initial CDN download
local = FALSE  -> CDN URL

Evidence

  • The uncached partial bundle reproduces the CDN connection error. With the network blocked, the full bundle and a previously cached partial bundle both exported self-contained HTML. Headless Chrome rendered all 10 points in each file while offline.
  • The generated help page passed R’s Rd checks and rendered as HTML. All eight existing partial-bundle assertions passed. Parsed R expressions match upstream.

Merge impact

The change updates the help page and its example. It can be reverted independently.

Codex assisted with implementation and verification.

Explain when partial bundles require a CDN download and when the
session cache can satisfy an offline export. Show how to save with
the installed full bundle.

Fixes plotly#2498

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

libcurl error when using htmlwidgets::saveWidget along with plotly::partial_bundle without an internet connection

1 participant