get_dependencies | R Documentation |
Extract the content of the 'load_script' headers of a sketch R file
get_dependencies(app_script, local_only = TRUE)
app_script |
A character string; the path to the sketch R file. |
local_only |
TRUE / FALSE; if TRUE, exclude the ones that are web link. |
sample_file <- system.file("test_files/test_sketch.R", package = "sketch")
cat(readLines(sample_file), sep = "\n") # Preview the file content
get_dependencies(sample_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.