Repository navigation
Open portable .webrproj bundles as webR Interactive workspaces - #2012
Open
renkun-ken wants to merge 4 commits into
Open
renkun-ken wants to merge 4 commits into
renkun-ken wants to merge 4 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #2011. Part of #2003.
Using a webR project
Choose R: New webR Project… to create a
.webrproj, or open an existing bundle with File → Open File… or R: Open webR Project…. Its scripts and data become the Explorer workspace. R Interactive starts in/projector reconnects to the existing managed session. Running code and requesting language features from a project file use its owning webR session.For example, save
write.csv(mtcars, "cars.csv", row.names = FALSE)infit.Rand run the script. Both files travel with the bundle. UsesaveRDS()to include an R object explicitly. Opening a portable copy on another machine can start a new worker.Storage and recovery
manifest.jsonwith{"format":1}and the project tree underfiles/. Archive validation checks paths, file types, expansion bounds and integrity before extraction.workspace.fs. Web Locks coordinate cooperating tabs, and R changes are checked against simultaneous editor saves. Native browser file handles support saving without access to the parent directory. Other providers need write and rename support. Page reload restores saved files in a new worker.Workspace label, terminal and hover
The virtual-workspace indicator shows the bundle filename, retaining its spelling on desktop and browser reload. The full source/host digest still separates identically named bundles. Reopen an older standalone project from its .webrproj file to switch to the named workspace.
The generated VS Code workspace selects webR Project Terminal by default. It starts in
/projectand can also read and write worker-local files in/tmpand/home/web_user. Typehelpfor its filesystem commands. On browser-only VS Code, Terminal → New Terminal opens the workbench profile picker; R: Open webR Project Terminal opens the target directly. The user's global terminal settings and the contents of the portable archive are independent of the generated workspace preferences.The native Help index now skips webR project and session documents. With native R deliberately unavailable,
lm,summary,par, andplotreturned full webR documentation in the project editor, Interactive input, and executed cells without a native process or error notification. Ordinary native R source files retain Help panel links.Verification