View source: R/visualise_dependencies.R
visualise_dependencies | R Documentation |
This function creates an interactive visualisation of function dependencies. It can work on functions within a package, or functions loaded into your global environment. Because the underlying functions are a bit weird, the argument syntax isn't quite intuitive. The default behaviour will visualise the function dependencies of what is in your global environment. If you want to visualise the dependencies of a package, you need to pass the prefixed name of a function from that package. Check the examples.
visualise_dependencies(.f = NULL, ...)
.f |
(unquoted function name; default = |
... |
Arguments passed on to
|
a visNetwork
object
## Not run:
# To visualise the dependencies of your global environment:
sak::load_custom_functions() # You need the functions in the env
visualise_dependencies()
# To visualise the dependencies of a package
# Note if you are in a package repo first run `devtools::load_all()`
# You need to pass the name of a function from the package (any function will
# do)
visualise_dependencies(.f = sak::open_path)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.