Added R analysis example that calls REST API.