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, wraps learnr::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.

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)