convert binary output of GET()$content to list — basicDecoder • pogos

# convert binary output of GET()$content to list

Source: `R/rxdbHandling.R`
`basicDecoder.Rd`

convert binary output of GET()$content to list

    basicDecoder(x)

## Arguments

x

  string suitable for input to GET as GET(x)

## Value

output of fromJSON, typically a list

## Examples

    cl = basicDecoder('https://pharmacodb.pmgenomics.ca/api/v1/cell_lines')
    unlist(cl)
    #>         id       name         id       name         id       name         id
    #>        "1"    "105KC"        "2"   "1321N1"        "3"     "143B"        "4"
    #>       name         id       name         id       name         id       name
    #>    "184A1"        "5"    "184B5"        "6"     "2004"        "7"     "201T"
    #>         id       name         id       name         id       name         id
    #>        "8"    "21MT1"        "9"    "21MT2"       "10"     "21NT"       "11"
    #>       name         id       name         id       name         id       name
    #>     "21PT"       "12"    "22RV1"       "13" "23132-87"       "14"     "253J"
    #>         id       name         id       name         id       name         id
    #>       "15"  "253J-BV"       "16" "42-MG-BA"       "17"    "451Lu"       "18"
    #>       name         id       name         id       name         id       name
    #>     "501A"       "19"  "537 MEL"       "20"     "5637"       "21"      "59M"
    #>         id       name         id       name         id       name         id
    #>       "22"   "600MPE"       "23"  "624 mel"       "24"    "639-V"       "25"
    #>       name         id       name         id       name         id       name
    #>    "647-V"       "26"      "697"       "27"    "769-P"       "28"    "786-0"
    #>         id       name         id       name
    #>       "29"  "8-MG-BA"       "30"    "8305C"