Importing R Markdown report

Importing R Markdown report Juan C. Rojas E.  2021-09-14 02:30:54

Hi Panorama team!

I am wondering if there is a way to either display a R Markdown report in Panorama that was saved as an HTML file. I tried copying the generated HTML text to the Advanced Editor of a custom Wiki, but I got the following error after clicking "Save and Close":

Error: "There was a problem wile saving: Illegal element"

I have also just tried importing the file in a "Files" Web Part, but fort only the .html file I am getting the following error:

"You do not have privileges to upload"

For all other file types (so far) I have been able to upload.

Sorry if I am quite new to this whole web display and I am not approaching this right, but I hope you can help me with this.
Juan C. Rojas E.

Brendan MacLean responded:  2021-09-14 09:04:02

One option might be to display it in a web browser and then print it as a PDF. I can see why allowing the general posting of HTML content to a website could be a security issue, because it can contain any JavaScript with all the privileges of being part of the website.

If it is just displaying information, a PDF should be fine, right? Or is there actually active (JavaScript) content that you want to include?


Juan C. Rojas E. responded:  2021-09-15 00:29:33

Hi Brendan,

Thanks for the quick response and clarification on the security issue.

I feel a bit dumb haha I didn't consider such a simple solution. Although the browser print .pdf doesn't look as nice it could do the job since the report only displays information. You can also export as .pdf or word document through RStudio. I can't invest that much time at the moment to make a nice looking .pdf with LaTex through RStudio.

Considering the security concerns and the outputs I can get, I'll resort to just upload a word document of the R markdown report.
Thank you for your time!

Juan C.