title: Setting Up Visual Studio code to work with R - "win32 can't use R"
body: <p>I am trying to set up R to work with Visual Studio code.
  When i execute a line with the keys <code>CTRL</code>+<code>ENTER</code> I get the error &quot;win32 can't use R&quot;.</p>
  <p>I am following the advice laid out in this <a href="https://medium.com/analytics-vidhya/a-fresh-start-for-r-in-vscode-ec61ed108cf6" rel="noreferrer">medium post</a> where i have managed to install all the extensions but am unsure where to apply point <em>&quot;4. Finally add these lines in the settings.json of your editor&quot;</em></p>
  <p>I have seen the <a href="https://supunkavinda.blog/vscode-editing-settings-json" rel="noreferrer">this post</a> which describes (I think) how to update the settings.JSON but to be honest im not sure where and if this is the correct place to add the lines in the original post.</p>
  <p>The JSON file on my PC looks like the below</p>
  <pre><code>{
      &quot;[json]&quot;: {
      
          &quot;editor.quickSuggestions&quot;: {
              &quot;strings&quot;: true
          },
          &quot;editor.suggest.insertMode&quot;: &quot;replace&quot;,
          &quot;gitlens.codeLens.scopes&quot;: [
              &quot;document&quot;
          ]
      }
  }
  </code></pre>
  <p>Could someone point me in the right direction</p>
  <p>Thanks</p>