powered by
Get all dependencies from a Rmd file
att_from_rmd( path, temp_dir = tempdir(), warn = -1, encoding = getOption("encoding"), inside_rmd = FALSE, inline = TRUE )att_from_qmd( path, temp_dir = tempdir(), warn = -1, encoding = getOption("encoding"), inside_rmd = FALSE, inline = TRUE )
att_from_qmd( path, temp_dir = tempdir(), warn = -1, encoding = getOption("encoding"), inside_rmd = FALSE, inline = TRUE )
vector of character of packages names found in the Rmd
Path to a Rmd file
Path to temporary script from purl vignette
-1 for quiet warnings with purl, 0 to see warnings
Encoding of the input file; always assumed to be UTF-8 (i.e., this argument is effectively ignored).
Logical. Whether function is run inside a Rmd, in case this must be executed in an external R session
Logical. Default TRUE. Whether to explore inline code for dependencies.
dummypackage <- system.file("dummypackage",package = "attachment") # browseURL(dummypackage) att_from_rmd(path = file.path(dummypackage,"vignettes/demo.Rmd"))
Run the code above in your browser using DataLab