Learn R Programming

gym (version 0.1.0)

get_request: Submit a GET request to an OpenAI Gym server.

Description

Submit a GET request to an OpenAI Gym server.

Usage

get_request(x, route, data = NULL)

Arguments

x
An instance of class "GymClient"; this object has "remote_base" as an attribute.
route
The URL path or endpoint.
data
URL query arguments. Default value is NULL.

Value

If the response code is 200 or 204, a parsed response. Else, a server error or raised exception.

Examples

Run this code
## Not run: 
# remote_base <- "http://127.0.0.1:5000"
# client <- create_GymClient(remote_base)
# route <- "/v1/envs/"
# get_request(client, route)
# ## End(Not run)

Run the code above in your browser using DataLab