Skip to content

Commit a129a5d

Browse files
committed
Reset the user environment after the vignette has been built, at the request of CRAN
1 parent a2759af commit a129a5d

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

vignettes/evolutionary_algorithm.Rmd

+8-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ vignette: >
2323
- [Haploid and diploid individuals](#ploidy)
2424
- [Literature cited](#lit)
2525

26+
```{r, echo = FALSE}
27+
oldpar <- par();
28+
```
29+
2630
<a name = "introduction">Introduction</a>
2731
================================================================================
2832

@@ -97,7 +101,7 @@ We can likewise use a 4 by 4 square matrix to represent the values of the arrows
97101

98102
```{r}
99103
arrows_2_dat <- rnorm(n = 4 * 4, mean = 0, sd = 0.1);
100-
arrows_2_mat <- matrix(data = arrows_1_dat, nrow = 4, ncol = 4);
104+
arrows_2_mat <- matrix(data = arrows_2_dat, nrow = 4, ncol = 4);
101105
print(arrows_2_mat);
102106
```
103107

@@ -215,3 +219,6 @@ The evolutionary algorithm does not distinguish between haploid and diploid geno
215219
================================================================================
216220

217221

222+
```{r, echo = FALSE}
223+
par(oldpar);
224+
```

vignettes/resevol.Rmd

+8
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ vignette: >
2121
- [Additional guidance](#additional)
2222
- [Literature cited](#lit)
2323

24+
```{r, echo = FALSE}
25+
oldpar <- par();
26+
```
27+
2428
<a name = "introduction">Introduction</a>
2529
================================================================================
2630

@@ -411,3 +415,7 @@ Additional guidance can be found in the [package notes](https://bradduthie.githu
411415
================================================================================
412416

413417

418+
```{r, echo = FALSE}
419+
par(oldpar);
420+
```
421+

0 commit comments

Comments
 (0)