Learn R Programming

sketch (version 1.1.20.3)

bundle: 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

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

Run the code above in your browser using DataLab