Changing the Physical path where r-markdown report (for example xxx.html ) saved in Rstudio Connect?

rstudioconnect

#1

is it possible to change the default Physical path where r-markdown report (for example xxx.html ) saved in Rstudio Connect case by case ?


#2

The output filename is tied to the name of your source R Markdown file. If your file is named xxx.Rmd, then the result will be xxx.html. A source file named engineering-data-analysis.Rmd will give the HTML file engineering-data-analysis.html. This behavior is the default for rmarkdown::render.

RStudio Connect does not allow further control over the resulting filename. The output filename cannot be modified on each report render.


#3

Sorry, I didn't make the question clear here.
I have a rmarkdown file running in Rstudio Connect server, called xxx.Rmd. by default, the rmarkdown file generates report called xxx.html and saves it into the default Physical path DataDir/reports/XX.ZZ. I believe only the linux root user have access to that path.

I am just wondering if there is any way for me (the rmarkdown file creator, not linux root user) to change the default Physical path of R markdown reports to a shared directory in Linux server. Therefore, any linux user could have access to that report xxx.html file.
Thanks,


#4

No, unfortunately the location on disk where RStudio Connect renders the RMD is an internal detail and not something that can be controlled.

The HTML file is available over HTTP(s) at the content URL. One of Connect's primary responsibilities is ensuring that users - with appropriate permissions - consistently access the correct HTML file by visiting that URL.

Can you provide detail on what you're trying to do?

In newer versions of Connect, older renderings are available through the "Rendering History" view, which might provide what you're looking for? http://docs.rstudio.com/connect/user/r-markdown.html#r-markdown-history


#5

I am trying to deploying a shiny app in the same r connect server with ability to render a updated report that already generated from the exiting r markdown file in the same r connect server.


#6

To be sure I'm following...

You have an RMD on Connect (say its named report.Rmd). report.Rmd is scheduled to produce report.html on a regular basis?

Then you have a Shiny app on Connect (say it is named report-viewer.R) that shows report.html? Is that right?

If you are looking for an easy way to allow users to customize an RMD, have you seen Connect's support for parameterized RMD?


#7

Yes. that's what I am looking for.

I haven't seen Connect's support for parameterized RMD


#8

There's a demonstration of parameterized R Markdown reports with RStudio Connect that Aron gave at rstudio::conf 2018 here: https://www.rstudio.com/resources/videos/parameterized-r-markdown-reports-with-rstudio-connect/

For anyone new to parameterized R Markdown, see: https://rmarkdown.rstudio.com/developer_parameterized_reports.html