Skip to content
Snippets Groups Projects
Commit b2d57280 authored by LouisGendron's avatar LouisGendron
Browse files

Merge branch 'master' of gitlab.iric.ca:bioinfo_iric/riricdata

parents 11f8d135 5055ec9f
No related branches found
No related tags found
No related merge requests found
......@@ -12,9 +12,9 @@
#' ### IRICData class
#' ###
require(jsonlite)
require(data.table)
require(rvest)
library(jsonlite)
library(data.table)
library(rvest)
IRICData <- setClass(
# Set the name for the class
......@@ -175,7 +175,7 @@ setMethod(
if (tmp[1] == 'download'){ #annotation files will start with "annotation" isntead of "download"
file_id <- tmp[2]
resp <- rvest::jump_to(session, paste(url_,'secure/datafiles/json/metadata', file_id, sep='/'))
metadata <- fromJSON(rawToChar(resp$response$content))
metadata <- jsonlite::fromJSON(rawToChar(resp$response$content))
metadata$file_id <- file_id
return(metadata)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment