RStudio Connect + Rmarkdown: Maximum Upload Size Exceeded

rmarkdown
rstudioconnect

#1

Hi,

I want to create a rmarkdown report with RStudio connect. The report relies on several excel files.
The end user should be able to upload these excel files.

In my yaml header, I've included the files as follows:

params:
  test_data: 
    input: file
    value: "data.xlsx"

In RStudio Connect I get the possibility to upload these files.
But when uploading the files i always receive the following error:
"Maximum upload size exceeded"

I know that in a shiny app, I can avoid this error by increasing the following option:

options(shiny.maxRequestSize = ....)

Is there a possibility to set a similar option when deploying a rmarkdown report?

Thank you very much for your help!


#2

There is an option getOption("rsconnect.max.bundle.size"). By default it is set to

options(rsconnect.max.bundle.size = 3145728000)

Should have this after loading rsconnect :package:. You could change this option to increase the maximum.