get_target | R Documentation |
Get a single target from a makelist
by
alias.
get_target(makelist, alias)
makelist |
A list for
|
alias |
The alias of the target in question. |
A list (the target requested).
Other functions to manipulate makelists:
add_target()
,
remove_target()
ml <- provide_make_list()
visualize(ml, root = "all.Rout")
i <- which(sapply(ml, "[[", "target") == "b1.Rout")
ml[[i]]["alias"] <- "b1"
t <- get_target(ml, "b1")
ml <- remove_target(ml, t[["target"]])
visualize(ml)
ml <- add_target(ml, target = t[["target"]], code = t[["code"]],
sink = t[["sink"]],
prerequisite_to = "a1.Rout", alias = NULL)
all.equal(ml, provide_make_list())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.