powered by
Extract the content of the `load_script` headers of a sketch R file
get_dependencies(app_script, local_only = TRUE)
A character string; the path to the sketch R file.
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)
Run the code above in your browser using DataLab