readlogfile: Read the MTurkR Logfile

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/readlogfile.R

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

1
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’.

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.

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).

Author(s)

Thomas J. Leeper

See Also

request

Examples

1
2
3
4
## Not run: 
log <- readlogfile()

## End(Not run)

MTurkR documentation built on May 29, 2017, 11:09 p.m.