title: Install R package in Jupyter
body: <p>I have been trying over the weekend to install <code>mosaic</code>, <code>car</code> and some other packages on an R kernel (3.4.2) in Jupyter Notebook running Ubuntu 16.04. I have tried <code>install.packages('car', '/home/jayaramdas/anaconda3/lib/R/library/', repos='http://cran.us.r-project.org')</code>: it returns:
  also installing the dependency ‘pbkrtest’</p>
  
  <p><code>Warning message in install.packages("car", "/home/jayaramdas/anaconda3/lib/R/library/", :
  “installation of package ‘pbkrtest’ had non-zero exit status”Warning message in install.packages("car", "/home/jayaramdas/anaconda3/lib/R/library/", :
  “installation of package ‘car’ had non-zero exit status”</code> </p>
  
  <p>I've tried installing it in the original R package and I get this:
  <code>Warning messages:
  1: In install.packages("car", "/home/jayaramdas/anaconda3/lib/R/library/",  :
    installation of package ‘pbkrtest’ had non-zero exit status
  2: In install.packages("car", "/home/jayaramdas/anaconda3/lib/R/library/",  :
    installation of package ‘car’ had non-zero exit status</code></p>
  
  <p>I tried using Rstudio to install it, but it won't let me write the file. I also tried downloading the zip file for Ubuntu and it still gave the 'non-zero exit<code>error.  Is this a usual problem that people have with</code>car` and other R packages? I am just trying to figure how to add some packages to my jupyter notebook.</p>