title: Downloading Kaggle zip files in R
body: <p>I'm attempting to download zip files directly from the Kaggle space in my R code itself. Unfortunately, it's not working out right. Here's what's happening:</p>
  
  <p>For the San Francisco Crime Data set at <a href="https://www.kaggle.com/c/sf-crime/data" rel="nofollow">https://www.kaggle.com/c/sf-crime/data</a></p>
  
  <p>Take the first data set: test.csv.zip:
  <a href="https://www.kaggle.com/c/sf-crime/download/test.csv.zip" rel="nofollow">https://www.kaggle.com/c/sf-crime/download/test.csv.zip</a></p>
  
  <p>I'm using R code:</p>
  
  <pre><code>download.file(url='https://www.kaggle.com/c/sf-crime/download/test.csv.zip', destfile = 'test.zip',method = 'curl')
  </code></pre>
  
  <p>In place of the original 18.75MB file, R only downloads a 183byte file.</p>
  
  <p>Session output:</p>
  
  <pre><code>% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100   183  100   183    0     0    665      0 --:--:-- --:--:-- --:--:--   667
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks in advance,
  Rahul</p>