RStudio - publishing html outputs from rmarkdown

Has anyone used Rstudio workbench in Code Workspaces, and if so, have you published a html output from an rmarkdown script? if so, could you tell me the steps you followed as some of my colleagues and myself have not been able to do this.
Many thanks.

Hi MichelleW!

I recommend checking out our docs on publishing RMarkdown reports: https://www.palantir.com/docs/foundry/code-workspaces/rstudio. Let me know if this is what you’re looking for, and if so if you run into any issues along the way.

Hi Caleb, thanks for the link. I have managed to read in a dataset to a RMarkdown and output a dataset. However I can’t manage to publish a html output from RMarkdown. Could you possibly talk me through it? I can then pass it on to others with the same issue. many thanks, Michelle

Hi MichelleW,

First you’ll want to head to the ‘Reports’ UI:


and install any necessary packages

Follow the flow to “Create a new report” - which will ask you to select an Rmd file. You should also add any dataset inputs that are used in the RMarkdown report.

Complete the flow, and a report will be built + published from your workspace. You can view the report by clicking on it from the ‘Reports’ panel. It will look something like this:

Let me know if there’s anything else I can clarify!