title: Error in library("Hmisc"): there is no package called 'Hmisc'
body: <p>I just installed R using anaconda, and I am following this tutorial:</p>
  
  <p><a href="https://www.analyticsvidhya.com/blog/2016/03/tutorial-powerful-packages-imputing-missing-values/" rel="nofollow noreferrer">https://www.analyticsvidhya.com/blog/2016/03/tutorial-powerful-packages-imputing-missing-values/</a></p>
  
  <p>I learned that I need to install some package by using:</p>
  
  <pre><code>if(!require(Hmisc)) install.packages("Hmisc",repos = "http://cran.us.r-project.org")
  </code></pre>
  
  <p>There are some warning message i am not sure whether it means successful or not:</p>
  
  <pre><code>Loading required package: Hmisc
  Warning message:
  In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called 'Hmisc'also installing the dependencies 'survival', 'ggplot2'
  
  Warning message:
  In install.packages("Hmisc", repos = "http://cran.us.r-project.org"): installation of package 'survival' had non-zero exit status
  Warning message:
  In install.packages("Hmisc", repos = "http://cran.us.r-project.org"): installation of package 'ggplot2' had non-zero exit status
  Warning message:
  In install.packages("Hmisc", repos = "http://cran.us.r-project.org"): installation of package 'Hmisc' had non-zero exit status
  
  The downloaded source packages are in
      '/tmp/Rtmpcf6rZ9/downloaded_packages'
  Updating HTML index of packages in '.Library'
  Making 'packages.html' ... done
  </code></pre>
  
  <p>Then I tried to load the library with </p>
  
  <pre><code>library(Hmisc)
  </code></pre>
  
  <p>But I got the error,</p>
  
  <blockquote>
    <p>Error in library(Hmisc): there is no package called 'Hmisc'</p>
  </blockquote>
  
  <p>Does anyone know what might has happened? Thanks.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I am suggested to try a few more ways, but they all have various error:</p>
  
  <pre><code>install.packages("Hmisc")
  </code></pre>
  
  <blockquote>
  <pre><code>Error in contrib.url(repos, type): trying to use CRAN without setting a mirror
  </code></pre>
  </blockquote>
  
  <p>If I do:</p>
  
  <pre><code>install.packages("Hmisc",repos = "http://cran.us.r-project.org")
  </code></pre>
  
  <p>I got:
      also installing the dependencies 'survival', 'ggplot2'</p>
  
  <pre><code>Warning message:
  In install.packages("Hmisc", repos = "http://cran.us.r-project.org"): installation of package 'survival' had non-zero exit status
  Warning message:
  In install.packages("Hmisc", repos = "http://cran.us.r-project.org"): installation of package 'ggplot2' had non-zero exit status
  Warning message:
  In install.packages("Hmisc", repos = "http://cran.us.r-project.org"): installation of package 'Hmisc' had non-zero exit status
  
  The downloaded source packages are in
      '/tmp/Rtmpcf6rZ9/downloaded_packages'
  Updating HTML index of packages in '.Library'
  Making 'packages.html' ... done
  </code></pre>
  
  <p>I am suggested not to use Anaconda R, but because I mostly use rpy2 and jupiter notebook the most. I think using the Anaconda R may be the most straight forward method to get my jupiter notebook and python to work seamlessly with R. </p>