Skip to content

Commit

Permalink
updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
qddyy committed Dec 14, 2023
1 parent 67dc474 commit 4df6231
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions vignettes/examples.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ knitr::opts_chunk$set(
fig.align = "center", fig.width = 16, fig.height = 9, out.width = "100%"
)
for (pkg in c("ggplot2", "microbenchmark")) {
if (!require(pkg)) install.packages(pkg, repos = "https://cloud.r-project.org/")
if (!requireNamespace("ggplot2")) {
install.packages("ggplot2", repos = "https://cloud.r-project.org/")
}
```

Expand Down Expand Up @@ -124,12 +124,6 @@ t$p_value
# 1000 permutaions
t$n_permu <- 1000
t$p_value
# install.packages("microbenchmark")
microbenchmark::microbenchmark(
use_all = {t$n_permu <- 0},
use_1000 = {t$n_permu <- 1000}
)
```

## Example 2.6.1
Expand Down

0 comments on commit 4df6231

Please sign in to comment.