File: utils-assert-args.md

package info (click to toggle)
r-cran-igraph 2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 27,772 kB
  • sloc: ansic: 206,420; cpp: 21,827; fortran: 4,090; yacc: 1,229; lex: 518; sh: 52; makefile: 8
file content (20 lines) | stat: -rw-r--r-- 462 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# ensure_igraph() works

    Must provide a graph object (provided wrong object type).

---

    Must provide a graph object (provided wrong object type).

---

    Must provide a graph object (provided `NULL`).

# igraph.match.arg() works

    Code
      cluster_leiden(make_graph("Zachary"), objective_function = "something")
    Condition
      Error in `cluster_leiden()`:
      ! `objective_function` must be one of "cpm" or "modularity", not "something".