I have a parametized Rmarkdown that I published to Rstudio Connect. This report have to read a file (a csv in this example) and show the data. For this example, I use cars and mtcars data save as csv file.
When I run the report on Rstudio Connect with the default data (cars.csv) I have no problem but when I upload a file from my Desktop (mtcars.csv) and run the report, I have an error. Rstudio Connect doesn’t see the tempfile where the csv is supposed to be.
Error: '/opt/rstudio-connect/mnt/tmp/RtmpzIMnJ2/file260711283692/0.csv' does not exist.
I’m using RStudio Connect v1.6.10-3 and R 3-5-1.
The Rmarkdown deployed on Rstudio Connect:
--- title: "Read upload file on Rstudio Connect" output: html_document params: data: label: "Csv Files" value: "cars.csv" input: file --- readr::read_csv(params$data)
Any help would be highly appreciated.