Skip to content

Commit

Permalink
Update RefMetCode.R
Browse files Browse the repository at this point in the history
  • Loading branch information
eoindfahy authored Jan 16, 2024
1 parent 21ea33e commit 0876285
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions R/RefMetCode.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,8 @@ refmet
#'
refmet_metadata <- function(metabolite){
metabolite_enc <- URLencode(metabolite)
myurl <-paste0("http://dev.metabolomicsworkbench.org:45076/data/metstatR.php?REFMET_NAME=",metabolite_enc)
myurl <-paste0("https://www.metabolomicsworkbench.org/data/metstatR.php?REFMET_NAME=",metabolite_enc)
h <- new_handle()
handle_setopt(
handle = h,
httpauth = 1,
userpwd = "DRCC:mw@UC13"
)
req <- curl_fetch_memory(myurl, handle = h)
metadata <- read.table(text = rawToChar(req$content), header = TRUE, na.strings = "-", stringsAsFactors = FALSE, quote = "", comment.char = "", sep="\t");
metadata
Expand Down

0 comments on commit 0876285

Please sign in to comment.