% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/decode-shinylive-link.R
\name{preview_shinylive_link}
\alias{preview_shinylive_link}
\title{Preview Shinylive link contents without writing files to disk}
\usage{
preview_shinylive_link(url)
}
\arguments{
\item{url}{Character string containing the Shinylive URL}
}
\value{
shinylive_preview object with file information and metadata
}
\description{
Decodes a Shinylive URL and returns information about the embedded files
without actually saving them to disk. Use print method options to control display.
}
\examples{
url <- as.character(shinylive_r_link("library(shiny)"))

# Inspect a link without writing anything to disk
preview <- preview_shinylive_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

}
\seealso{
\code{\link[=decode_shinylive_link]{decode_shinylive_link()}} to extract files to disk;
\code{\link[=shinylive_r_link]{shinylive_r_link()}} and \code{\link[=shinylive_py_link]{shinylive_py_link()}} to create links.
}
