title: Configuring the R PATH in Windows 10
body: <p>I'm trying to make it possible for Jupyter notebook to change from Python to R depending on the cells, following the instructions in <a href="https://stackoverflow.com/a/41889995/4089351">this post</a>. I am using Windows 10. I have installed Python 2 and 3 with anaconda, and use RStudio. </p>
  
  <p>Unfortunately, when I try to install <code>rpy2</code> on the command line, I get this error.</p>
  
  <p><a href="https://i.stack.imgur.com/qUcnA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qUcnA.png" alt="enter image description here"></a></p>
  
  <p>I modified the path in <code>Environmental Variables</code> by including the third line...</p>
  
  <p><a href="https://i.stack.imgur.com/R1UC5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R1UC5.png" alt="enter image description here"></a></p>
  
  <p>which seemed right given the location of R in...</p>
  
  <p><a href="https://i.stack.imgur.com/Bh3Jl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bh3Jl.png" alt="enter image description here"></a></p>
  
  <p>but it didn't do the trick.</p>