To generate R SDK or API client for REST API, one can easily do so with the help of OpenAPI Generator (<a href="https://github.com/OpenAPITools/openapi-generator" rel="nofollow">https://github.com/OpenAPITools/openapi-generator</a>). Here are 3 steps to generate the SDK/client:<p>1. Download the Java JAR (<a href="https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/4.0.0-SNAPSHOT/openapi-generator-cli-4.0.0-20190325.135215-449.jar" rel="nofollow">https://oss.sonatype.org/content/repositories/snapshots/org/...</a>)<p>2. Rename the JAR as "openapi-generator.jar"<p>3. Run the following command to generate R SDK for Petstore API (<a href="https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml" rel="nofollow">https://raw.githubusercontent.com/OpenAPITools/openapi-gener...</a>):<p>Mac/Linux:
- java -jar openapi-generator.jar generate -g r -i <a href="https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml" rel="nofollow">https://raw.githubusercontent.com/OpenAPITools/openapi-gener...</a> -o /tmp/petstore/<p>Windows:
- java -jar openapi-generator.jar generate -g r -i <a href="https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml" rel="nofollow">https://raw.githubusercontent.com/OpenAPITools/openapi-gener...</a> -o C:\tmp\petstore<p>The auto-generated documentation (README.md, how to install, etc) can be found in the "docs" folder.<p>Please give it a try and let me know if you've any feedback/question.