Learn R Programming

gym (version 0.1.0)

env_create: Create an instance of the specified environment.

Description

Create an instance of the specified environment.

Usage

env_create(x, env_id)

Arguments

x
An instance of class "GymClient"; this object has "remote_base" as an attribute.
env_id
A short identifier (such as "3c657dbc") for the created environment instance. The instance_id is used in future API calls to identify the environment to be manipulated.

Value

A short identifier (such as "3c657dbc") for the created environment instance. The instance_id is used in future API calls to identify the environment to be manipulated.

Examples

Run this code
## Not run: 
# remote_base <- "http://127.0.0.1:5000"
# client <- create_GymClient(remote_base)
# env_id <- "CartPole-v0"
# env_create(client, env_id)
# ## End(Not run)

Run the code above in your browser using DataLab