Skip to content

Commit

Permalink
disable external packages to try to fix pkgdown build
Browse files Browse the repository at this point in the history
  • Loading branch information
bluefoxr committed Apr 11, 2024
1 parent fe02062 commit 91a307b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions vignettes/aggregate.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ All of the four aggregation functions mentioned above have the same format (try
In this section we use some functions from other packages: the matrixStats package and the Compind package. These are not imported by COINr, so the code here will only work if you have these installed. If this vignette was built on your computer, we have to check whether these packages are installed:

```{r}
ms_installed <- requireNamespace("matrixStats", quietly = TRUE)
ms_installed
# ms_installed <- requireNamespace("matrixStats", quietly = TRUE)
# ms_installed
# ci_installed <- requireNamespace("Compind", quietly = TRUE)
# ci_installed
Expand All @@ -176,12 +176,12 @@ Now for an example, we can use the `weightedMedian()` function from the matrixSt
```{r, eval=F}
# RESTORE above eval=ms_installed
# load matrixStats package
library(matrixStats)
# aggregate using weightedMedian()
coin <- Aggregate(coin, dset = "Normalised",
f_ag = "weightedMedian",
f_ag_para = list(na.rm = TRUE))
# library(matrixStats)
#
# # aggregate using weightedMedian()
# coin <- Aggregate(coin, dset = "Normalised",
# f_ag = "weightedMedian",
# f_ag_para = list(na.rm = TRUE))
```

The weights `w` do not need to be specified in `f_ag_para` because they are automatically passed to `f_ag` unless specified otherwise.
Expand Down

0 comments on commit 91a307b

Please sign in to comment.