getDepends | R Documentation |
This function takes an R script, and identifies the files which are read (input and/or data) and written (output).
getDepends(file, info = as(readScript(file), "ScriptInfo"),
fileFunctionNames = FileFunctionNames(),
prev = info, loadPackages = TRUE, addExpressionNum = TRUE)
file |
An *.R file to analyze. |
info |
An object of class |
fileFunctionNames |
The names of functions which can read or write files. Default functions
are provided by |
prev |
the previous |
loadPackages |
logical, should the packages required by the script be loaded? |
addExpressionNum |
logical, should the expressions be numbered. |
Returns a data.frame
consisting of,
filename |
The name of the file which is being read/loaded or written/saved |
operation |
The operation being conducted on that file name |
expressionNum |
optional, if |
Duncan Temple Lang
getFilesRead
getVariableDepends
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.