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 7e866c6 commit 0e8db27
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion R/install_latest_version.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ install_latest_version <- function(test = FALSE) {
no = "main"
)
message("ref is ", ref)
pak::pak_cleanup(force = TRUE)
pak::pak_update()
# Fails sometimes
tryCatch(
Expand Down Expand Up @@ -112,7 +113,7 @@ install_latest_version <- function(test = FALSE) {
url = paste0(
"https://raw.githubusercontent.com/taxonomicallyinformedannotation/tima-r/",
ref,
"/_targets.yaml"
"/inst/pipelines/_targets.yaml"
),
export = file.path(cache, "_targets.yaml")
)
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
"SystemRequirements": null
},
"keywords": ["metaboliteannotation", "chemotaxonomy", "scoringsystem", "naturalproducts", "computationalmetabolomics", "taxonomicdistance", "specializedmetabolome"],
"fileSize": "4377.249KB",
"fileSize": "4377.311KB",
"citation": [
{
"@type": "ScholarlyArticle",
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-functions.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
library(testthat)
## need to do all in one because of outputs needed in the same temp dir
## use fixtures instead in the future
test_that("Test functions", {
test_that(desc = "Test functions", code = {
install_latest_version(test = TRUE)
setwd(fs::path_home(".tima"))
## Prepare parameters
Expand Down

0 comments on commit 0e8db27

Please sign in to comment.