Need help manipulating URL using concatenation to span 2 years of archived data in R
<p>I would like to concatenate the following values in R.</p>

<pre><code>day &lt;- sprintf("%02d", 1:31)
month &lt;- sprintf("%02d", 1:12)
year &lt;- 2015:as.numeric(format(Sys.time(), "%Y"))
</code></pre>

<p>I need them to be in the following format <code>2015/01/01012015 (YYYY/MM/MMDDYYYY)</code> where MMs would have to be equal at all times.<br>
 Ultimately I want to attach it to the end on this URL <code>http://brocktonpolice.com/wp-content/uploads/</code> so I can pass it as an argument to a download function to download the files.</p>

<p>Here is what I have so far</p>

<pre><code>links &lt;- NULL
i &lt;- 1
while (i &lt;= length(year)) {

links[i] &lt;- paste0("http://brocktonpolice.com/wp-content/uploads/",year[i],     sep = "/")
i = i + 1
}
</code></pre>

<p>I would like it to span the entire year of 2015 and 2016. 
For example:   </p>

<pre><code>http://brocktonpolice.com/wp-content/uploads/2015/01/01012015.pdf  
http://brocktonpolice.com/wp-content/uploads/2015/01/01022015.pdf  
http://brocktonpolice.com/wp-content/uploads/2015/01/01032015.pdf  
http://brocktonpolice.com/wp-content/uploads/2015/01/01042015.pdf  
...  
http://brocktonpolice.com/wp-content/uploads/2015/02/02012015.pdf  
http://brocktonpolice.com/wp-content/uploads/2015/02/02022015.pdf   
http://brocktonpolice.com/wp-content/uploads/2015/02/02032015.pdf 
...    
etc
</code></pre>