| walk_call_knitr | R Documentation | 
Walk an abstract syntax tree and capture knitr dependencies.
walk_call_knitr(expr, counter)
| expr | A language object or function to scan. | 
| counter | An internal counter object that keeps track of detected target names so far. | 
For internal use only. Not a user-side function.
Powers  automatic detection of tar_load()/tar_read()
dependencies in tar_render().
Packages codetools and CodeDepends have different (more sophisticated
and elaborate) implementations of the concepts documented at
https://adv-r.hadley.nz/expressions.html#ast-funs.
A character vector of target names found during static code analysis.
# How tar_render() really works:
expr <- quote({
  if (a > 1) {
    tar_load(target_name)
  }
  process_stuff(target_name)
})
walk_ast(expr, walk_call_knitr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.