/usr/lib/R/site-library/igraph/tests/test_graph.formula.R is in r-cran-igraph 0.7.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | context("graph.formula")
test_that("simplify argument works", {
library(igraph)
g1 <- graph.formula(1-1, 1-2, 1-2)
g2 <- graph.formula(1-1, 1-2, 1-2, simplify=FALSE)
expect_that(vcount(g1), equals(2))
expect_that(ecount(g1), equals(1))
expect_that(vcount(g2), equals(2))
expect_that(ecount(g2), equals(3))
})
|