Skip to content

Commit a0ef61d

Browse files
authored
Fixing bits (#76)
* Removing configure from the package and addressing compiler warnings in comparing int with uword * Fixing missing image * Ensuring that the vignette builds properly
1 parent ad6ed9d commit a0ef61d

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/pkgdown.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches: [main, prod]
5+
branches: [main, master]
66
pull_request:
7-
branches: [main, prod]
7+
branches: [main, master]
88
release:
99
types: [published]
1010
workflow_dispatch:

vignettes/simulating-multiple-behaviors-on-networks.Rmd

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ If you want to use other function to analyze the results from the simulation foc
213213
net_single_from_multiple <- split_behaviors(net_multiple)
214214
net_single_from_multiple_1 <- net_single_from_multiple[[1]]
215215
216-
expect_equal(net_single_from_multiple_1$toa, net_single$toa)
217-
expect_equal(net_single_from_multiple_1$adopt, net_single$adopt)
218-
expect_equal(net_single_from_multiple_1$cumadopt, net_single$cumadopt)
216+
all(net_single_from_multiple_1$toa == net_single$toa)
217+
all(net_single_from_multiple_1$adopt == net_single$adopt)
218+
all(net_single_from_multiple_1$cumadopt == net_single$cumadopt)
219219
220220
```
221221

@@ -257,8 +257,7 @@ ans_d_adopt <- rdiffnet(n = n, t = 10, disadopt = d_adopt,
257257
tmat <- toa_mat(ans_d_adopt)
258258
should_be_ones_or_zeros <- tmat[[1]]$cumadopt[, 10] + tmat[[2]]$cumadopt[, 10]
259259
260-
expect_true(all(should_be_ones_or_zeros %in% c(0,1)))
261-
260+
all(should_be_ones_or_zeros %in% c(0,1))
262261
```
263262

264263
```{r}

0 commit comments

Comments
 (0)