R analysis stub