Learn R Programming

MTurkR (version 0.8.0)

readlogfile: Read the MTurkR Logfile

Description

A log of all MTurk API requests are stored in a tab-separated value file called ‘MTurkRLog.tsv’ in, by default, the current working directory. This function reads this MTurkR logfile into R as a data frame, using read.delim.

Usage

readlogfile(path = getOption('MTurkR.logdir'), filename="MTurkRlog.tsv")

Arguments

path

An optional character string specifying the path of a directory containing an MTurkR log file.

filename

The name of the MTurkR log file. The default is MTurkRlog.tsv.

Value

A data frame containing details of previous (logged) MTurk API requests (including RequestId, Operation performed, REST query parameters, and MTurk response XML as a character string).

Details

By default, MTurkR stores a record of all MTurk API requests in a local file in the working directory (though this can be reset with options('MTurkR.logdir'). This function reads the locally stored MTurkR log file (MTurkRlog.tsv) into R as a data frame. This is useful for error checking and reviewing prior requests.

See Also

request

Examples

Run this code
# NOT RUN {
log <- readlogfile()
# }

Run the code above in your browser using DataLab