tar_sql_deps | R Documentation |
List the target dependencies of one or more SQL queries.
tar_sql_deps(path)
path |
Character vector, path to one or more SQL queries. |
Character vector of the names of targets that are dependencies of the SQL query.
lines <- c(
"-- !preview conn=DBI::dbConnect(RSQLite::SQLite())",
"-- targets::tar_load(data1)",
"-- targets::tar_read(data2)",
"select 1 as my_col",
""
)
query <- tempfile()
writeLines(lines, query)
tar_sql_deps(query)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.