Skip to contents

Decodes a webR URL and returns information about the embedded files without actually saving them to disk. Use print method options to control display.

Usage

preview_webr_link(url)

Arguments

url

Character string containing the webR URL

Value

webr_preview object with file information and metadata

Examples

if (FALSE) { # \dontrun{
url <- "https://webr.r-wasm.org/latest/#code=..."

# Create preview object
preview <- preview_webr_link(url)

# Default print (no content)
print(preview)

# Show file contents
print(preview, show_content = TRUE)

# Show file contents with custom length limit
print(preview, show_content = TRUE, max_content_length = 200)

# Access the preview data
preview$files_data
preview$total_files
} # }