title: How do I install R packages on the SageMaker Notebook instance?
body: <p>I tried to start a R notebook in Sagemaker and I typed</p>
  
  <pre class="lang-r prettyprint-override"><code>install.packages("disk.frame")
  </code></pre>
  
  <p>and it gave me the error</p>
  
  <pre><code>also installing the dependencies ‘listenv’, ‘dplyr’, ‘rlang’, ‘furrr’, 
  ‘future.apply’, ‘fs’, ‘pryr’, ‘fst’, ‘globals’, ‘future’
  
  Warning message in install.packages("disk.frame"):
  “installation of package ‘rlang’ had non-zero exit status”
  Warning message in install.packages("disk.frame"):
  “installation of package ‘fs’ had non-zero exit status”
  Warning message in install.packages("disk.frame"):
  “installation of package ‘pryr’ had non-zero exit status”
  Warning message in install.packages("disk.frame"):
  “installation of package ‘fst’ had non-zero exit status”
  Warning message in install.packages("disk.frame"):
  “installation of package ‘dplyr’ had non-zero exit status”
  Warning message in install.packages("disk.frame"):
  “installation of package ‘disk.frame’ had non-zero exit status”
  Updating HTML index of packages in '.Library'
  Making 'packages.html' ... done
  </code></pre>
  
  <p>How do I install R packages on Sagemaker?</p>