bundle: Bundle a list of files into a single JavaScript file

View source: R/extra-bundle.R

bundleR Documentation

Bundle a list of files into a single JavaScript file

Description

Bundle a list of files into a single JavaScript file

Usage

bundle(fs)

Arguments

fs

A character vector; a list of R or JavaScript files. The R files will be transpiled to JavaScript before bundling.

Examples

library(sketch)
js <- bundle(c(src("dom"), src("io")))
cat(paste(readLines(js), collapse = "\n"))


sketch documentation built on May 29, 2024, 8:18 a.m.