RStudio Connect fileInput widget for parameterized reports is still broken


This issue is in reference to a post by @Rodrigue from 2019-10-11 (Parametized Rmarkdown with fileinput on Rstudio Connect New). Suggest @cole.

I'm having the same issue as @Rodrigue. When I deploy this minimal reprex together with cars.csv it renders correctly at first.

title: "RStudio Connect fileInput widget is still broken"
output: html_document
    label: "Upload a file"
    value: cars.csv
    input: file


But when I select any file through the fileInput widget and knit the report, I get the following error:

07/20 19:53:02.975
Error: '/opt/rstudio-connect/mnt/tmp/RtmphCPGPu/file1c132df61ed9/0.csv' does not exist.

I checked the permissions of /opt/rstudio-connect/mnt/tmp/, and they are correct. I'm running RStudio Connect version 1.7.8-7 (build 1144ac9) with R 4.0.2 on RHEL 7.7.

I would rather not have to re-write my parameterized reports as Shiny apps to fix this. I work with medical technologists who are comfortable with uploading an Excel file in a web form but not with uploading it somewhere that's accessible via a pin.

Can you please investigate this issue?

Many thanks!

Hey @skadauke !

So sorry for the trouble here. Unfortunately, I believe that this is still broken and does not have a solution yet. :frowning_face:

Did any of the workarounds or solutions proposed here seem amenable to you?

In particular, my latest meanderings lead me to imagine a workflow like the following:

  • upload file to Shiny app
  • Shiny app pins the file
  • Shiny app renders an Rmd pointing to this pin
  • Shiny app redirects user to the rendered Rmd

There are some tricky bits of this workflow (namely, how to get the Rmd to point at the pin, how to give the user access to the report, etc.), but I am inclined to try a little prototype if that workflow would be helpful!

Hi @cole! Thanks for your response. I would be happy to try out a prototype of the workflow you are imagining. Could you build it and share here?

Although on the other hand, I think, it would be great if the RStudio Connect Dev Team could fix this issue since it apparently affects a number of their customers.

Looking forward to hearing from you!


1 Like

Hi @cole, just wanted to follow up on the Shiny -> pin -> parametrized Rmd workflow prototype. Anything you need from me to move forward?

Not at all! I started a little prototype, but I wouldn't call it functional yet :smile: Hoping to have something sharable soon! :slight_smile: One of the tricky problems is "what you do to organize the pins, reports, etc."

1 Like