R 3.2.3 devtools::install_version() fails (.zip file not found)
<p>I'm trying to leave instructions for how to set up an R environment as similar as possible to mine on Windows. I found this stackoverflow thread, which was really helpful:
<a href="https://stackoverflow.com/questions/17082341/installing-older-version-of-r-package">Installing older version of R package</a></p>

<p>I can get most packages to work using the "versions" package, which pulls from MRAN. However, a few packages are not available on MRAN (because they were published too long ago).</p>

<p>So I tried to use the devtools::install_version() option. However, I have found that I get the following error:</p>

<pre><code>devtools::install_version("proj4", version = "1.0-8")
#&gt; trying URL 'https://cran.rstudio.com/src/contrib/proj4_1.0-8.zip'
#&gt; Error in download.file(url, destfile, method, mode = "wb", ...) : 
#&gt;   cannot open URL 'https://cran.rstudio.com/src/contrib/proj4_1.0-8.zip'
#&gt; In addition: Warning message:
#&gt; In download.file(url, destfile, method, mode = "wb", ...) :
#&gt;   cannot open URL 'https://cran.rstudio.com/src/contrib/proj4_1.0-8.zip': HTTP status was '404 Not Found'
#&gt; Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
#&gt;   download of package ‘animation’ failed
</code></pre>

<p>By navigating around the website, I think that the CRAN no longer posts .zip files, but there is a .tar.gz file: </p>

<p><a href="https://cran.rstudio.com/src/contrib/proj4_1.0-8.tar.gz" rel="nofollow noreferrer">https://cran.rstudio.com/src/contrib/proj4_1.0-8.tar.gz</a> </p>

<p>I believe that I still could install a .tar.gz file, but I don't know how to make R do it for me.</p>

<p>I'm hoping that someone here can help me with a solution that gets devtools::install_version() to work on R 3.2.3. (If the only solution is to install version 3.2.4, then I could probably make that work, too, but would prefer not to)</p>

<p>I'd also appreciate some pointers explaining how these packages are stored. In particular, it seems possible that I could just copy the folders out of my library and have someone else put them into theirs, and things will work (as long as they are also using windows(?)). Or would I have to build binaries? If so, how would I do that? This way I could have the devtools::install_version() method only as a backup.</p>

<p>Thanks!</p>