filter_dependencies | R Documentation |
This function removes all dependencies that are not one of the specified types.
filter_dependencies(object, which = "strong")
## S3 method for class 'wood_deps'
filter_dependencies(object, which = "strong")
## S3 method for class 'wood_dep_squashed'
filter_dependencies(object, which = "strong")
## S3 method for class 'wood_dep_list'
filter_dependencies(object, which = "strong")
## S3 method for class ''NULL''
filter_dependencies(object, which = "strong")
object |
|
which |
|
Object of the same class as object
parameter, but with filtered
dependencies.
# It can filter both single-package dependencies...
stats_deps <- wood_core_dependencies("stats")
filter_dependencies(stats_deps)
# ...and a list for multiple packages too.
core_pkgs <- wood_core_packages()
core_deps <- wood_dependencies(core_pkgs, "core")
filter_dependencies(core_deps, c("Imports", "Enhances"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.