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

Update IRICData-class.R

parent 87d2d34d
No related branches found
No related tags found
No related merge requests found
......@@ -147,7 +147,7 @@ setMethod(
signature='IRICData',
definition=function(object, session, id_file) {
resp = rvest::jump_to(session, paste(object@url,'secure/datafiles/json/annotation', id_file, sep='/'))
metadata = fromJSON(rawToChar(resp$response$content))
metadata = jsonlite::fromJSON(rawToChar(resp$response$content))
return(metadata)
}
)
......@@ -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