markusdumke / reinforcelearn

R Package for Reinforcement Learning
https://markusdumke.github.io/reinforcelearn/
Other
33 stars 6 forks source link

can we have a better startup procedure for ai gym? #18

Closed berndbischl closed 6 years ago

berndbischl commented 6 years ago
package.path = system.file(package = "reinforcelearn")
path2pythonfile = paste0(package.path, "/gym_http_server.py")
system2("python", args = path2pythonfile, stdout = NULL,
  wait = FALSE, invisible = FALSE)

env = makeEnvironment("MountainCar-v0")

the first lines should likely be executed internally by our r package

markusdumke commented 6 years ago

Using reticulate this is not necessary anymore.

env = makeEnvironment("gym", "MountainCar-v0")