R/generateMgrastWebsession.R

Defines functions generateMgrastWebsession

Documented in generateMgrastWebsession

generateMgrastWebsession <- function(cookie) {
    cookie <- as.matrix(read.delim(cookie, header = F, stringsAsFactors = F))
    key.index <- match("WebSession", cookie)
    if (key.index) {
        key <- cookie[key.index + nrow(cookie)]
    } else {
        stop("cookie may incorrect")
    }
    return(key)
} 

Try the mmnet package in your browser

Any scripts or data that you put into this service are public.

mmnet documentation built on May 31, 2017, 3:25 p.m.