Package: livelink 0.1.0

James Joseph Balamuta

livelink: Create Shareable Links for 'webR' and 'Shinylive' Environments

Creates shareable links for 'R' code in 'WebAssembly' (WASM) Read-Eval-Print Loop (REPL) environments like 'webR' <https://webr.r-wasm.org/> and for 'Shiny' applications using 'Shinylive' <https://shinylive.io/>. Supports single scripts, multi-file projects, exercise and solution pairs, and batch processing. Includes encoding, decoding, and previewing of links for both 'R' and 'Python' environments.

Authors:James Joseph Balamuta [aut, cre, cph], reprex authors [cph]

livelink_0.1.0.tar.gz
livelink_0.1.0.zip(r-4.7-any)
livelink_0.1.0.tar.gz(r-4.7-any)livelink_0.1.0.tar.gz(r-4.6-any)
livelink_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
livelink/json (API)

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

Bug tracker:https://github.com/coatless-rpkg/livelink/issues

Pkgdown/docs site:https://r-pkg.thecoatlessprofessor.com

On CRAN:

Conda:

quarto

3.40 score 16 exports 9 dependencies

Last updated from:4b012a1e2e. Checks:5 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK139
source / vignettesOK193
linux-release-x86_64OK139
windows-devel-x86_64OK190
wasm-releaseOK130

Exports:decode_shinylive_linkdecode_webr_linkpreview_shinylive_linkpreview_webr_linkrepl_urlsset_webr_base_urlshinylive_directoryshinylive_projectshinylive_py_linkshinylive_r_linkuse_livelink_engineuse_livelink_hookwebr_repl_directorywebr_repl_exercisewebr_repl_linkwebr_repl_project

Dependencies:base64encBHclicliprcpp11jsonlitelzstringRcppRcppMsgPack

Decoding and previewing links
Look before you leap | Extracting the files | The round trip is lossless | Shinylive links decode too | Many links at once | Reading links livelink did not create | Getting just the URL

Last update: 2026-07-24
Started: 2026-07-24

Getting Started with livelink
The idea | Your first link | Comments and expression input | Making it run on arrival | Choosing what they see | A Shiny app instead | Why a string, and not a braced expression? | What a link actually looks like | Going the other way | Links inside a document | Where to next

Last update: 2026-07-24
Started: 2026-07-24

Links inside documents
The hook: output and a link | The engine: a link, and no execution | There is no {shinylive-r} chunk | Chunk options | echo does not do what you might think | Setting options once | Why not a braced expression? | Every chunk option

Last update: 2026-07-24
Started: 2026-07-24

Multi-file projects and Shiny apps
webR projects | Describing the files | Write the list inside the call | Running something on arrival | Where the files land | Shiny apps | Why that chunk is not run | Editor or app? | mode is not panels | Python | A directory at a time | How big can a link get?

Last update: 2026-07-24
Started: 2026-07-24

Teaching with livelink
Exercise and solution pairs | Choosing what students see | A whole folder of scripts | One link per file, or one link for the folder? | Embedding links in your notes | Collecting work back in

Last update: 2026-07-24
Started: 2026-07-24

Readme and manuals

Help Manual

Help pageTopics
Extract URLs as character vectoras.character.shinylive_decoded as.character.shinylive_decoded_batch as.character.shinylive_directory as.character.shinylive_link as.character.shinylive_preview as.character.shinylive_project as.character.webr_decoded as.character.webr_decoded_batch as.character.webr_directory as.character.webr_exercise as.character.webr_link as.character.webr_preview as.character.webr_project
Turn a livelink container into a data frameas.data.frame.livelink as.data.frame.shinylive_decoded_batch as.data.frame.shinylive_directory as.data.frame.webr_decoded_batch as.data.frame.webr_directory
Decode Shinylive link(s) to extract files to local directorydecode_shinylive_link
Decode webR REPL link(s) to extract files to local directorydecode_webr_link
Format a livelink object as a character vectorformat.livelink format.shinylive_decoded format.shinylive_decoded_batch format.shinylive_directory format.shinylive_link format.shinylive_preview format.shinylive_project format.webr_decoded format.webr_decoded_batch format.webr_directory format.webr_exercise format.webr_link format.webr_preview format.webr_project
Render livelink objects as links in knitted documentsknit_print.livelink knit_print.shinylive_directory knit_print.shinylive_link knit_print.shinylive_project knit_print.webr_directory knit_print.webr_exercise knit_print.webr_link knit_print.webr_project
Turn document chunks into shareable linkslivelink-knitr use_livelink_engine use_livelink_hook
Preview Shinylive link contents without writing files to diskpreview_shinylive_link
Preview webR REPL link contents without writing files to diskpreview_webr_link
Print method for shinylive_decoded objectsprint.shinylive_decoded
Print method for shinylive_decoded_batch objectsprint.shinylive_decoded_batch
Print method for shinylive_directory objectsprint.shinylive_directory
Print method for shinylive_link objectsprint.shinylive_link
Print method for shinylive_preview objectsprint.shinylive_preview
Print method for shinylive_project objectsprint.shinylive_project
Print method for webr_decoded objectsprint.webr_decoded
Print method for webr_decoded_batch objectsprint.webr_decoded_batch
Print method for webr_directory objectsprint.webr_directory
Print method for webr_exercise objectsprint.webr_exercise
Print method for webr_link objectsprint.webr_link
Print method for webr_preview objectsprint.webr_preview
Print method for webr_project objectsprint.webr_project
Extract shareable URLs from livelink objectsrepl_urls repl_urls.default
Set global base URL for webR linksset_webr_base_url
Create Shinylive sharelinks from a directory of Shiny appsshinylive_directory
Create a Shinylive sharelink for multi-file projectsshinylive_project
Create a Shinylive sharelink for Python Shiny appsshinylive_py_link
Create a Shinylive sharelink for R Shiny appsshinylive_r_link
Create webR REPL sharelinks from a directory of R fileswebr_repl_directory
Create paired exercise and solution webR REPL linkswebr_repl_exercise
Create a webR REPL sharelink from R codewebr_repl_link
Create webR REPL sharelink for multiple fileswebr_repl_project