title: How to install R packages without admin right?
body: <p>It is very common question which normally people ask. However none of the existed answers helped me so far.
  I am using <code>Windows 7</code>, I have already the <code>R</code> installed on my machine however, I could not install any packages .
  I have tried to do as it is said <a href="http://www.magesblog.com/2012/04/installing-r-packages-without-admin.html" rel="nofollow">here</a>,</p>
  
  <p>however, for me it is not only programming file blocked but it is a <code>root</code> that I can only be a <code>user</code>.</p>
  
  <p>For example, when I try to install a package I get the following </p>
  
  <pre><code>&gt; install.packages("ggplot2")
  --- Please select a CRAN mirror for use in this session ---
  Warning: unable to access index for repository http://cran.mirror.garr.it/mirrors/CRAN/src/contrib
  Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib
  Warning: unable to access index for repository http://cran.mirror.garr.it/mirrors/CRAN/bin/windows/contrib/3.2
  Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.2
  Warning messages:
  1: In open.connection(con, "r") :
    unable to connect to 'cran.r-project.org' on port 80.
  2: package ‘ggplot2’ is not available (for R version 3.2.0) 
  </code></pre>
  
  <p>if I do the following, I am not sure if I really installed the package </p>
  
  <p>for example </p>
  
  <pre><code>&gt; setInternet2(TRUE) 
  &gt; install.packages("devtools")
  also installing the dependencies ‘mime’, ‘R6’, ‘bitops’, ‘brew’, ‘httr’, ‘RCurl’, ‘memoise’, ‘whisker’, ‘evaluate’, ‘rstudioapi’, ‘jsonlite’, ‘roxygen2’
  
  trying URL 'http://cran.mirror.garr.it/mirrors/CRAN/bin/windows/contrib/3.2/mime_0.3.zip'
  Content type 'application/zip' length 35053 bytes (34 KB)
  downloaded 34 KB
  
  trying URL 'http://cran.mirror.garr.it/mirrors/CRAN/bin/windows/contrib/3.2/R6_2.0.1.zip'
  Content type 'application/zip' length 123320 bytes (120 KB)
  downloaded 120 KB
  
  trying URL 'http://cran.mirror.garr.it/mirrors/CRAN/bin/windows/contrib/3.2/bitops_1.0-6.zip'
  Content type 'application/zip' length 36011 bytes (35 KB)
  downloaded 35 KB
  
  trying URL 'http://cran.mirror.garr.it/mirrors/CRAN/bin/windows/contrib/3.2/brew_1.0-6.zip'
  Content type 'application/zip' length 104709 bytes (102 KB)
  downloaded 102 KB
  
  trying URL 'http://cran.mirror.garr.it/mirrors/CRAN/bin/windows/contrib/3.2/httr_0.6.1.zip'
  Content type 'application/zip' length 388330 bytes (379 KB)
  downloaded 379 KB
  
  trying URL 'http://cran.mirror.garr.it/mirrors/CRAN/bin/windows/contrib/3.2/RCurl_1.95-4.6.zip'
  Content type 'application/zip' length 2703282 bytes (2.6 MB)
  downloaded 2.6 MB
  
  trying URL 'http://cran.mirror.garr.it/mirrors/CRAN/bin/windows/contrib/3.2/memoise_0.2.1.zip'
  Content type 'application/zip' length 16861 bytes (16 KB)
  downloaded 16 KB
  
  trying URL 'http://cran.mirror.garr.it/mirrors/CRAN/bin/windows/contrib/3.2/whisker_0.3-2.zip'
  Content type 'application/zip' length 64626 bytes (63 KB)
  downloaded 63 KB
  
  trying URL 'http://cran.mirror.garr.it/mirrors/CRAN/bin/windows/contrib/3.2/evaluate_0.7.zip'
  Content type 'application/zip' length 36884 bytes (36 KB)
  downloaded 36 KB
  
  trying URL 'http://cran.mirror.garr.it/mirrors/CRAN/bin/windows/contrib/3.2/rstudioapi_0.3.1.zip'
  Content type 'application/zip' length 27315 bytes (26 KB)
  downloaded 26 KB
  
  trying URL 'http://cran.mirror.garr.it/mirrors/CRAN/bin/windows/contrib/3.2/jsonlite_0.9.16.zip'
  Content type 'application/zip' length 1009930 bytes (986 KB)
  downloaded 986 KB
  
  trying URL 'http://cran.mirror.garr.it/mirrors/CRAN/bin/windows/contrib/3.2/roxygen2_4.1.1.zip'
  Content type 'application/zip' length 598652 bytes (584 KB)
  downloaded 584 KB
  
  trying URL 'http://cran.mirror.garr.it/mirrors/CRAN/bin/windows/contrib/3.2/devtools_1.7.0.zip'
  Content type 'application/zip' length 309378 bytes (302 KB)
  downloaded 302 KB
  
  package ‘mime’ successfully unpacked and MD5 sums checked
  package ‘R6’ successfully unpacked and MD5 sums checked
  package ‘bitops’ successfully unpacked and MD5 sums checked
  package ‘brew’ successfully unpacked and MD5 sums checked
  package ‘httr’ successfully unpacked and MD5 sums checked
  package ‘RCurl’ successfully unpacked and MD5 sums checked
  package ‘memoise’ successfully unpacked and MD5 sums checked
  package ‘whisker’ successfully unpacked and MD5 sums checked
  package ‘evaluate’ successfully unpacked and MD5 sums checked
  package ‘rstudioapi’ successfully unpacked and MD5 sums checked
  package ‘jsonlite’ successfully unpacked and MD5 sums checked
  package ‘roxygen2’ successfully unpacked and MD5 sums checked
  package ‘devtools’ successfully unpacked and MD5 sums checked
  
  The downloaded binary packages are in
          C:\Users\ex3446\AppData\Local\Temp\RtmpOYDKSd\downloaded_packages
  </code></pre>
  
  <p>Is there any suggestion ?  </p>