Update R interface to match changes in json