# NOT RUN {
e = readScript(system.file("samples", "dual.R", package = "CodeDepends"))
getVariableDepends("fit", e, formulaInputs = TRUE)
getVariableDepends("fit", e, formulaInputs = TRUE, asIndex = TRUE)
getVariableDepends("y", e, asIndex = TRUE)
getVariableDepends("y", e)
# }
Run the code above in your browser using DataLab