Debian Codegraph @

man/roam.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/preview.R
3 \name{roam}
4 \alias{roam}
5 \title{Preview Markdown and R Markdown files}
6 \usage{
7 roam(dir = ".", live = TRUE, ...)
8 }
9 \arguments{
10 \item{dir}{A directory path.}
11
12 \item{live}{Whether to enable live preview. If enabled, the browser page will
13 be automatically updated upon modification of local files used by the page
14 (e.g., the Markdown file or external CSS/JS/image files). If disabled, you
15 can manually refresh the page to fully re-render it.}
16
17 \item{...}{Other arguments to be passed to \code{\link[xfun:new_app]{xfun::new_app()}}.}
18 }
19 \value{
20 A URL (invisibly) for the preview.
21 }
22 \description{
23 Launch a web page to list and preview files under a directory.
24 }
25 \details{
26 Markdown files will be converted to HTML and returned to the web browser
27 directly without writing to HTML files, to keep the directory clean during
28 the preview. Clicking on a filename will bring up an HTML preview. To see its
29 raw content, click on the link on its file size instead.
30 }