get_dependencies: Extract the content of the 'load_script' headers of a sketch...

View source: R/extra-test.R

get_dependenciesR Documentation

Extract the content of the 'load_script' headers of a sketch R file

Description

Extract the content of the 'load_script' headers of a sketch R file

Usage

get_dependencies(app_script, local_only = TRUE)

Arguments

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.

Examples


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)


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