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?
I think the problem is not the rsconnect.max.bundle.size. Even small files (like >=5MB) cause this error. I would like to tell rsconnect, that it should use the shiny option mentioned above.
Apologies for the delayed response here. File Inputs to Parameterized R Markdown reports are not very customizable today, and unfortunately there is no way to set the option in question for the selector made available in the Connect UI. I have opened an issue internally for tracking. At present the only workarounds I can come up with are:
use a Shiny application or Shiny document (R Markdown document with a Shiny runtime).
save the files onto an internal webserver or share drive, and have a text input for a filepath or URL. R code would then be required to "go get" the file and pull it into Connect when rendering.