Learn R Programming

MTurkR (version 0.2)

ParseErrorCodes: Parse MTurk API Errors

Description

Mostly internal function to parse MTurk API error codes (from XML) into an R dataframe.

Usage

ParseErrorCodes(xml = NULL, xml.parsed = NULL)

Arguments

xml
A character string containing a full MTurk XML response. Must specify this or the xml.parsed parameter.
xml.parsed
A full MTurk XML response parsed by the xmlParse. Must specify this or the xml parameter.

Value

  • A dataframe containing rows for each API error code and its corresponding message. This dataframe is returned by request whenever a request is invalid.

Details

A mostly internal function to parse MTurk API error codes (returned in XML format) into an R dataframe. API errors only emerge when requests are not valid and this is largely an internal function, but may be minimally helpful when reviewing invalid requests in the log file (see readlogfile).

See Also

request