Skip to content

Commit

Permalink
Use pak to install instead of remotes to install package
Browse files Browse the repository at this point in the history
  • Loading branch information
VMT1312 committed Sep 19, 2024
1 parent 4f1f618 commit 34c28e2
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions docs/demos/template-short-report.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,14 @@ if (require(formatR)) {
}
# Integrating with AAGIPalettes, AAGIThemes
if (!requireNamespace("remotes", quietly = TRUE)) {
install.packages("remotes")
if (!requireNamespace("pak", quietly = TRUE)) {
install.packages("pak")
}
if (!require(AAGIThemes)) {
remotes::install_github(
"AAGI-AUS/AAGIThemes", dependencies = TRUE, upgrade = FALSE
)
pak::pkg_install("AAGI-AUS/AAGIThemes")
}
if (!require(AAGIPalettes)) {
remotes::install_github(
"AAGI-AUS/AAGIPalettes", dependencies = TRUE, upgrade = FALSE
)
pak::pkg_install("AAGI-AUS/AAGIPalettes")
}
library(AAGIThemes)
library(AAGIPalettes)
Expand Down

0 comments on commit 34c28e2

Please sign in to comment.