R interface to OpenSearch