Skip to content

Commit

Permalink
Fix: refmet validation
Browse files Browse the repository at this point in the history
  • Loading branch information
biodavidjm committed Mar 4, 2024
1 parent 22a8154 commit 244bf87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/metabolomics_data_dictionary.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ validate_refmetname <- function(dataf, verbose){

search_api <- paste0("https://www.metabolomicsworkbench.org/rest/refmet/match/",URLencode(rn),"/name/")
here <- jsonlite::fromJSON(search_api)
if(length(here) == 0){
if(here$refmet_name == "-"){
if(verbose) message(paste0(" (-) `refmet_name` [`", rn, "`] not available in RefMet. Please, contact MW/BIC (Error RN1)"))
irm <- irm + 1
idna <- idna + 1
Expand Down

0 comments on commit 244bf87

Please sign in to comment.