Interactive Slidify deployment? - r

I found this great tutorial for slidify
How can I create a "standalone" presentation? I tried changing the mode to standalone but it does not work because of Rcharts and shiny. I would like to be able to create something that I can host in my website.
I tried to publish to dropbox but the interactive graphics do not work
publish_dropbox("slidify")

Related

Problem rendering R Plots output to png device in azure app service

I am working on migrating my on-premises asp.net app to azure app service. My app renders R plots as a PNG using R.net. I am packaging R software as a folder(not as installation) in my publish and updating R.net environment variables to use R libraries in that folder. This setup is working in an on-premises windows server:
While trying to render this in Azure app service using the same parameters as on-prem, it renders an error. The below specifies output at 300dpi:
If the output resolution is changed to 280dpi, the png image renders but is missing lots of legends and lines:
I tried setting type = "cario" for png device but not able to draw complete plot.
Other things tried:
Setting the output to a bitmap. Also renders a partial image, but different issues from the PNG. It renders the plot, but tiles of the image are missing, particularly on the right and bottom of the image
Setting the output to a pdf. Renders a complete image, but not in the format we want (PNG)
Any suggestions on rendering R plots from azure app service are well appreciated.

Lock FlexDashboard Markdown for edits

I am trying to find a way to make a FlexDashboard (using Shiny runtime) accessible to a colleague without access to the internet.
To provide my colleague with the full interactive experience (drop-down menus etc), I was thinking of simply installing R on my colleagues laptop and share the markdown script with them but does anyone know a way to lock the script for edits?
I just want to make sure that there is no accidental edits which might mess up the running of the markdown.
Look forward to hearing any inputs!
I would create a shiny application tweak it perfectly and then write a docker script to run they shiny application as an independent entity,
Your friend can use that docker container to run the dashboard and interact with it, but has no need of opening the script or anything else, just bake all the functionality into the shiny application and call the docker container and the flexdashboard will publish to a console.

How can I profile a full R flexdashboard app to see what might be taking the most time/memory?

Does anyone know how to profile a full flexdashboard app?
The profvis library looks promising but it appears to only support shiny apps.
What is the best way to profile a flexdashboard app based on Rmarkdown?
Thanks!
Melissa
You can use
profvis::profvis(rmarkdown::run("flexdashboard.Rmd"))
to start a flexdashboard app named flexdashboard.Rmd in the current working directory and profile its runtime behavior.

Is shiny dependent on having Rstudio?

I am trying to develop an shiny app, it works on my PC and not on my office server. The IT person at my office said that it is because the shiny depends on having Rstudio which they cannot install.
Therefore, I uninstalled my Rsudio to test if it works without the Rstudio. It did work and now I am asking to make sure that shiny is not dependent on having Rstudio.
Also, I can't find the R dependency of the shiny also. Does it need to be >R.3.2.5?
edited:
To clarify, this is the simple example from the shiny tutorial. It looks like this in my PC (without having shiny). I don't know how to check if I have any shiny server installed?!!!
And this is how it looks like when I try the same code on our server (R version is R/3.2.2)
Thanks

In plotly (python API): How to enable latex rendering in offline mode?

I am using plotly version 1.9.3, and using it to embed figures in jupyter notebook in offline mode using
init_notebook_mode()
When I enter TeX notation in labels, titles, etc., the Tex will not render (i.e. $\alpha$ will be displayed as source.
When I use the "save and edit in cloud" toolbar option, in the plotly website it renders correctly.
Can I configure it to render also in the offline mode?
I have both LaTex installation and a local installation of MathJax.
At the moment, it unfortunately does not seem possible to configure plotly to properly render TeX notations in the offline mode. There is an open issue on their github repo with several users describing this problem.
For future reference, support was added for rendering LaTeX in offline mode in plotly.py version 3.4.0.
From https://github.com/plotly/plotly.py/blob/master/CHANGELOG.md#added:
Added LaTeX typesetting support for figures displayed in the Jupyter Notebook using plotly.offline.iplot and plotly.graph_objs.FigureWidget. Note: There are still outstanding issues with MathJax rendering in FireFox, but it is now working well in Chrome. (#1243)

Resources