assets: Process assets in headers

View source: R/assets-loader.R

assetsR Documentation

Process assets in headers

Description

Take a 'sketch' R file as input, extract and process the resources links as provided by the user with the '#!'/'#|' header.

Usage

assets(file, ..., trace = FALSE)

Arguments

file

Character string; the file path.

...

(Optional) List of processors to pass to convert_src.

trace

TRUE or FALSE; if TRUE, assets are extracted, but not processed.

Examples

file <- system.file("test_files/test_RMD.R", package = "sketch")
assets(file, trace = TRUE)
assets(file, trace = FALSE)


sketch documentation built on Oct. 23, 2022, 5:07 p.m.