#&gt; </div><div class='input'>
</div><span class='co'># NOT RUN {</span>
<span class='co'># Create an OpenAI Gym environment.</span>
<span class='co'># Make sure you have Python, gym and reticulate installed.</span>
<span class='no'>env</span> <span class='kw'>=</span> <span class='fu'>makeEnvironment</span>(<span class='st'>"gym"</span>, <span class='kw'>gym.name</span> <span class='kw'>=</span> <span class='st'>"MountainCar-v0"</span>)

<span class='co'># Take random actions for 200 steps.</span>
<span c