R Bugfix: now sending indices in API call to create a gtable