A simple R client for the TheySay AffectR API
R
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENCE
README.md Small edits May 31, 2013
affectr_rest_client.R Formatting Apr 22, 2014
texts.R

README.md

affectr-r

A simple R client for TheySay AffectR API.

Install

The client has been tested on R 3.0.1 for Mac OS X. The following packages need to be installed:

install.packages(c("httr", "rjson", "XML"))

Running Examples

First specify an output directory for the analyses in the affectr_rest_client.R file:

outDir <- ""

Then update your TheySay AffectR API credentials in the affectr_rest_client.R file:

usr <- ""
pwd <- ""

Load the provided sample texts from the texts.R file:

source("your_installation_directory/texts.R")

Then load the API client itself:

source("your_installation_directory/affectr_r_client.R")

The API client submits the sample texts to TheySay AffectR API and saves the responses to a bunch of tab-limited text files.

Licence

Apache 2 Licence. Copyright 2013 TheySay Ltd.

For further details, see the LICENCE file.