From 34c28e2f2bfa0c88c8126b04ff6312e2233dfe60 Mon Sep 17 00:00:00 2001 From: VMT1312 Date: Thu, 19 Sep 2024 14:48:56 +0800 Subject: [PATCH] Use pak to install instead of remotes to install package --- docs/demos/template-short-report.qmd | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/demos/template-short-report.qmd b/docs/demos/template-short-report.qmd index daa56da..1e7611c 100644 --- a/docs/demos/template-short-report.qmd +++ b/docs/demos/template-short-report.qmd @@ -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)