View source: R/assets-loader.R
assets | R Documentation |
Take a 'sketch' R file as input, extract and process the resources links as provided by the user with the '#!'/'#|' header.
assets(file, ..., trace = FALSE)
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. |
file <- system.file("test_files/test_RMD.R", package = "sketch")
assets(file, trace = TRUE)
assets(file, trace = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.