Get all dependencies from a Rmd file
Arguments
- path
Path to a Rmd file
- temp_dir
Path to temporary script from purl vignette
- warn
-1 for quiet warnings with purl, 0 to see warnings
- encoding
Encoding of the input file; always assumed to be UTF-8 (i.e., this argument is effectively ignored).
- inside_rmd
Logical. Whether function is run inside a Rmd, in case this must be executed in an external R session
- inline
Logical. Default TRUE. Whether to explore inline code for dependencies.
Examples
dummypackage <- system.file("dummypackage",package = "attachment")
# browseURL(dummypackage)
att_from_rmd(path = file.path(dummypackage,"vignettes/demo.Rmd"))
#> [1] "glue" "knitr" "rmarkdown"