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 34998ac commit 8849e80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions R/get_params.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ get_params <- function(step) {

default_path <-
if (step == "prepare_params") {
file.path(paths$params$prepare_params)
system.file("params/prepare_params.yaml", package = "timaR")
} else {
if (step == "prepare_params_advanced") {
file.path(paths$params$prepare_params_advanced)
system.file("params/prepare_params_advanced.yaml", package = "timaR")
} else {
file.path(paths$params$default$path, paste0(step, ".yaml"))
file.path(system.file("params/default/", package = "timaR"), paste0(step, ".yaml"))
}
}

Expand All @@ -38,10 +38,10 @@ get_params <- function(step) {
stopifnot("Your step does not exist." = step %in% steps)

doc_path <-
file.path(paths$inst$scripts$docopt, paste0(step, ".txt"))
file.path(system.file("scripts/docopt/", package = "timaR"), paste0(step, ".txt"))

user_path <-
file.path(paths$params$user$path, paste0(step, ".yaml"))
file.path(system.file("params/user/", package = "timaR"), paste0(step, ".yaml"))

doc <- readChar(
con = doc_path,
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": "4379.46KB",
"fileSize": "4379.43KB",
"citation": [
{
"@type": "ScholarlyArticle",
Expand Down

0 comments on commit 8849e80

Please sign in to comment.