Skip to main content

assets

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#

fileCharacter string; the file path.
...(Optional) List of processors to pass to convert_src.
traceTRUE 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)