title: Jupyter Notebook: Installing R packages
body: <p>I have seen this question asked various times in stackoverflow, e.g the following:</p>
  
  <p><a href="https://stackoverflow.com/questions/47272451/error-with-install-r-packages-on-jupyter-notebook">error with install R packages on jupyter notebook</a></p>
  
  <p><a href="https://stackoverflow.com/questions/47286341/error-with-install-packages-r-on-jupyter-notebook">Error with install packages R on jupyter notebook</a></p>
  
  <p><a href="https://stackoverflow.com/questions/47309755/install-on-jupyter-notebook-packages-r">Install on jupyter notebook packages R</a></p>
  
  <p>and</p>
  
  <p><a href="https://stackoverflow.com/questions/34705917/conda-how-to-install-r-packages-that-are-not-available-in-r-essentials">conda - How to install R packages that are not available in &quot;R-essentials&quot;?</a></p>
  
  <p>However, the solutions offered haven't been working for me. I have tried to install the <code>ROCR</code> package in jupyter notebook and I get the following error:</p>
  
  <p><a href="https://i.stack.imgur.com/oQ7Qe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oQ7Qe.png" alt="enter image description here"></a></p>
  
  <p>Following the advice from <a href="https://www.anaconda.com/blog/developer-blog/conda-data-science/" rel="nofollow noreferrer">this</a> guide, I tried to replicate the example by installing the <code>LDAvis</code> package. First using <code>conda</code> in the ubuntu terminal as such:</p>
  
  <pre><code>conda skeleton cran ldavis
  </code></pre>
  
  <p>then</p>
  
  <pre><code>conda build r-ldavis/
  </code></pre>
  
  <p>However after doing this the package package doesn't install in jupyter, giving this instead:</p>
  
  <p>I have also tried opening an R session in the terminal and installing the package there, however this doesn't help. </p>
  
  <p>So in general how can I install R packages that aren't part of r-essentials, e.g. <code>ROCR</code> <code>LDAvis</code>? Probably I'm missing something very basic here, so any help would be greatly appreciated.</p>
  
  <p>Thanks!</p>
  
  <p><a href="https://i.stack.imgur.com/z7ipo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z7ipo.png" alt="enter image description here"></a></p>