env_create: Create an instance of the specified environment.

Description Usage Arguments Value Examples

View source: R/api.R

Description

Create an instance of the specified environment.

Usage

1
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

1
2
3
4
5
6
7
## 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)

gym documentation built on May 19, 2017, 10:18 a.m.

Search within the gym package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.