Skip to content

Commit

Permalink
Improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Adafede committed Jul 3, 2024
1 parent f27549c commit 2bb0476
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/install_latest_version.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ install_latest_version <- function() {
if (Sys.info()[["sysname"]] == "Linux") {
system(command = "sudo apt install libcurl4-openssl-dev libharfbuzz-dev libfribidi-dev")
}
if (!requireNamespace("devtools")) {
install.packages("devtools")
if (!requireNamespace("pak")) {
install.packages("pak")
}
ref <- ifelse(
test = Sys.getenv("BRANCH_NAME") != "",
yes = Sys.getenv("BRANCH_NAME"),
no = "main"
)
devtools::install_github(repo = paste0("taxonomicallyinformedannotation/tima-r@", ref))
pak::pak(paste0("taxonomicallyinformedannotation/tima-r@", ref), ask = FALSE)
cache <- fs::path_home(".tima")
message("Creating cache at ", cache)
fs::dir_create(path = cache)
Expand Down

0 comments on commit 2bb0476

Please sign in to comment.