tutorials {manynet} | R Documentation |
Open and extract code from tutorials
Description
These functions make it easy to use the tutorials
in the {manynet}
and {migraph}
packages:
-
run_tute()
runs a{learnr}
tutorial from either the{manynet}
or{migraph}
packages, wrapslearnr::run_tutorial()
with some convenience. -
extract_tute()
extracts and opens just the solution code from a{manynet}
or{migraph}
tutorial, saving the .R script to the current working directory. -
pkg_data()
returns a tibble with details of the network datasets included in the packages.
Usage
run_tute(tute)
extract_tute(tute)
pkg_data(pkg = "manynet")
Arguments
tute |
String, name of the tutorial (e.g. "tutorial2"). |
pkg |
String, name of the package. |
Examples
#run_tute("tutorial2")
#extract_tute("tutorial2")
#pkg_data()
# to obtain overview of unique datasets:
#pkg_data() %>%
#dplyr::distinct(directed, weighted, twomode, signed,
# .keep_all = TRUE)
[Package manynet version 0.4.4 Index]