title: Can't deploy large ish .RDS files to shinyapp.io in RStudio
body: <p>I'm trying to deploy a shiny app from RStudio. Along with the "ui.r" and "server.r" files, I have 3 .RDS files (50kb, 15mb and 18mb), which I read in server.r file, and they work fine locally. When I commence upload, it fails giving the following error:</p>
  
  <pre class="lang-r prettyprint-override"><code>Preparing to deploy application...DONE 
  Uploading bundle for application: 794264...
  Error in force(code) : Could not upload file. 
  Calls: &lt;Anonymous&gt; -&gt; withStatus -&gt; force
  Execution halted
  </code></pre>
  
  <p>I tried selecting on the 50kb and 15mb file, that worked. When I select the 18 mb on its own it works, but when I select all the three of them, it doesn't seem to work. I increased the file size to approx. 500 mb (which was most likely downsizing the bundle size) using the following:</p>
  
  <pre class="lang-r prettyprint-override"><code>options(rsconnect.max.bundle.files = 500000000)
  </code></pre>
  
  <p>As I read it takes the value in bytes.</p>
  
  <p>That was fruitless.</p>
  
  <p>I deployed using the console:</p>
  
  <pre class="lang-r prettyprint-override"><code>deployApp(appDir="Documents/GitHub/DataScience_JH_Coursera_Assignments/10.Capstone/shinyapp/PredictionText/",logLevel="verbose",lint=TRUE)
  </code></pre>
  
  <p>To no avail, but I'm managed to zero in to the problematic line and I got the following log:</p>
  
  <pre class="lang-r prettyprint-override"><code>----- Deployment error -----
  Error in force(code) : Could not upload file.
  
  ----- Error stack trace -----
  4: stop("Could not upload file.")
  3: force(code)
  2: withStatus(paste0("Uploading bundle for ", assetTypeName, ": ", 
         application$id), {
         bundlePath &lt;- bundleApp(target$appName, appDir, appFiles, 
             appPrimaryDoc, assetTypeName, contentCategory, verbose)
         if (isShinyapps(accountDetails)) {
             bundleSize &lt;- file.info(bundlePath)$size
             checkSum &lt;- md5sum(bundlePath)
             bundle &lt;- client$createBundle(application$id, "application/x-tar", 
                 bundleSize, checkSum)
             if (verbose) 
                 timestampedLog("Starting upload now")
             if (!uploadBundle(bundle, bundleSize, bundlePath)) {
                 stop("Could not upload file.")
             }
             if (verbose) 
                 timestampedLog("Upload complete")
             response &lt;- client$updateBundleStatus(bundle$id, status = "ready")
             bundle &lt;- client$getBundle(bundle$id)
         }
         else {
             bundle &lt;- client$uploadApplication(application$id, bundlePath)
         }
     })
  1: deployApp(appDir = "Documents/GitHub/DataScience_JH_Coursera_Assignments/10.Capstone/shinyapp/PredictionText/", 
         logLevel = "verbose", lint = TRUE)
  </code></pre>
  
  <p>So it's failing here, I'm assuming:</p>
  
  <pre class="lang-r prettyprint-override"><code>if (!uploadBundle(bundle, bundleSize, bundlePath)) {
  </code></pre>
  
  <p>FYI my bundle size is set to approx 3gb, if I did the conversion right when I got the following:</p>
  
  <pre class="lang-r prettyprint-override"><code>getOption("rsconnect.max.bundle.size")
  [1] 3145728000
  </code></pre>
  
  <p>I've been stuck on this for 5 days now. I read all the forums I can read, tried uploading the files individually only to find that shiny/rsconnect seems to delete the instance before that, hence not being able to upload files one-by-one. I even try to mess with .dcf rsconnect file and nothing there too. Any help/insight would be much appreciated.</p>