Skip to content

Commit b75e763

Browse files
committed
Linting
1 parent 14c00d1 commit b75e763

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/testthat/test-updateModelTermInputs.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ test_that("nodemix levels", {
314314
nw <- set_vertex_attribute(nw, "race", race)
315315

316316
est <- netest(nw = nw,
317-
formation = ~edges + nodemix("race", levels = c("a", "b", "d"), levels2=-(2:3)),
317+
formation = ~edges + nodemix("race", levels = c("a", "b", "d"), levels2 = -(2:3)),
318318
target.stats = c(200, 12, 25, 25, 12),
319319
coef.diss = dissolution_coefs(~offset(edges), duration = 100))
320320

@@ -397,7 +397,7 @@ test_that("triangle_attrdiff", {
397397
nw <- set_vertex_attribute(nw, "riskg", rbinom(100, 1, 0.5))
398398

399399
est <- netest(nw = nw,
400-
formation = ~edges + triangle(attr = "riskg", diff=TRUE),
400+
formation = ~edges + triangle(attr = "riskg", diff = TRUE),
401401
target.stats = c(50, 0, 0),
402402
coef.diss = dissolution_coefs(~offset(edges), duration = 100))
403403

@@ -425,7 +425,7 @@ test_that("triangle_attrdifflevels", {
425425
nw <- set_vertex_attribute(nw, "riskg", rbinom(100, 2, 0.1))
426426

427427
est <- netest(nw = nw,
428-
formation = ~edges + triangle(attr = "riskg", diff=TRUE, levels=c(1,2)),
428+
formation = ~edges + triangle(attr = "riskg", diff = TRUE, levels = c(1, 2)),
429429
target.stats = c(50, 0, 0),
430430
coef.diss = dissolution_coefs(~offset(edges), duration = 100))
431431

@@ -453,7 +453,7 @@ test_that("gwesp_true", {
453453
nw <- network_initialize(100)
454454

455455
est <- netest(nw = nw,
456-
formation = ~edges + gwesp(fixed=TRUE),
456+
formation = ~edges + gwesp(fixed = TRUE),
457457
target.stats = c(50, 2),
458458
coef.diss = dissolution_coefs(~offset(edges), duration = 100))
459459

@@ -480,7 +480,7 @@ test_that("gwesp_truedecay", {
480480
nw <- network_initialize(100)
481481

482482
est <- netest(nw = nw,
483-
formation = ~edges + gwesp(decay=0.8, fixed=TRUE),
483+
formation = ~edges + gwesp(decay = 0.8, fixed = TRUE),
484484
target.stats = c(50, 1.1),
485485
coef.diss = dissolution_coefs(~offset(edges), duration = 100))
486486

0 commit comments

Comments
 (0)