as.character.response function

S3 method to turn curl response into character

S3 method to turn curl response into character

Converts a raw curl response into a character string.

## S3 method for class 'response' as.character(x, ...)

Arguments

  • x: response from curl to render to character
  • ...: If type='text/csv' this is passed to read.csv. If type='application/json' this is sent to jsonlite::fromJSON
  • Maintainer: Shawn Garbett
  • License: GPL-2
  • Last published: 2024-10-17