Learn R Programming

MTurkR (version 0.2)

readlogfile: Read the MTurkR Logfile

Description

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

Usage

readlogfile(filename = NULL, shell = FALSE)

Arguments

filename
An optional character string specifying the name of an MTurkR log file to read into R. The default is MTurkRlog.tsv in the working directory.
shell
A logical specifying whether the log file should be opened using the workstation's default program for the log's file type (tab-separated value file) rather than loading into R. Default is FALSE.

Value

  • A dataframe containing details of previous (logged, non-browser) 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. This fucntion reads the locally stored MTurkR log file (MTurkRlog.tsv) into R as a dataframe. This is useful for error checking and reviewing prior requests. A convenient, visual interface for the logfile is provided by MTurkR.Wizard.

See Also

request

Examples

Run this code
log <- readlogfile()

Run the code above in your browser using DataLab