Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Adafede committed Dec 18, 2024
1 parent c36f5c7 commit 40a8ca0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion R/fake_ecmdb.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ fake_ecmdb <- function(export) {
"}]"
) |>
writeLines(fake_export)
system(paste("zip", export, fake_export))
system(paste("zip", basename(export), fake_export))
system(paste("mv", basename(export), export))
unlink(fake_export)
return(export)
}
3 changes: 2 additions & 1 deletion R/fake_hmdb.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ fake_hmdb <- function(export) {
""
) |>
writeLines(fake_export)
system(paste("zip", export, fake_export))
system(paste("zip", basename(export), fake_export))
system(paste("mv", basename(export), export))
unlink(fake_export)
return(export)
}
2 changes: 1 addition & 1 deletion R/get_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ get_file <-
return(FALSE)
}
if (!download_with_retry(url = url, destfile = export)) {
message("Failed to download the file after multiple attempts.")
stop("Failed to download the file after multiple attempts.")
}
} else {
message("File already exists. Skipping.")
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@
"SystemRequirements": null
},
"keywords": ["metaboliteannotation", "chemotaxonomy", "scoringsystem", "naturalproducts", "computationalmetabolomics", "taxonomicdistance", "specializedmetabolome"],
"fileSize": "2389.008KB",
"fileSize": "2388.718KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand Down

0 comments on commit 40a8ca0

Please sign in to comment.