R package communicating with SOAS API