I want to build a Shiny application where the user can select the input, select output format and click a button to download the report. There are 2 link I think could solve the problem:
http://rmarkdown.rstudio.com/developer_parameterized_reports.html
This link seems exactly what I want but the sample code is use for RStudio environment, I don't know to publish it as a Shiny app in Shiny Server.
http://shiny.rstudio.com/gallery/download-knitr-reports.html
This is the demo from RStudio for Shiny app but I still do not understand how the Shiny app pass parameter to the Rmarkdown document in order to compile the document.
Would someone explain it clearer with an working example.
There was already a question I think is similar to mine here but there was none answer:
How to link rmarkdown report with shinyapps to export webapp content in R?
Related
I have developed a shiny app with some sections which produce some results. There is another section with the option of download, in HTML format, the plots done in the app. When I am in the R environment it works, but it works because i have the shiny app file .R and the R markdown file .Rmd in the same folder. But when I upload the app in the browser, this link between the shiny app and the r markdown is lost. Is there a way to link both so someone without the Rmd document and without even having R Studio downloaded can use the app and download the plots in an HTML?
I am trying to find some option in shinyapps.io (i guess there's the place where they can be linked) but with no success. Thank you.
Edition: I'm trying something like that https://shiny.rstudio.com/gallery/download-knitr-reports.html
But in this example, it doesn't matter where and what is the R Markdown file?
I have solved the problem. Being in the RStudio environment, when one want to publish the app, in the window "Publish to Server", in the box "Publish Files From", there must be the two files, the .R file where the shiny app code is and the .Rmd where the code for the HTML download is.
I'm trying to keep this tool internal and a shiny apps webpage may not be private enough to display the tool. I have created a tool for my company that is meant to be private and internal. The data is very confidential, and the tool displays the data in an interactive way, allowing the user to analyze it through visualizations. I coded in R, and the output is an interactive R shiny apps tool, that becomes a shiny apps webpage. I'm looking for a way to make this tool an internal file that can be saved on a desktop and shared across a network instead of having it as a webpage with a not-as-private link. Someone mentioned to me that a .exe file could be possible. I'd appreciate any suggestions of how I should go about converting this interactive R shiny apps output into a file.
shinyApp(ui, server)
Hi guys i have made a shinyApp for a client using R.
The client for whom I’m working is asking for a shinyapp that works offline preferably in the form of an application or shiny window (as the online link of shinyapp.io will put load on the server). He wants to get the shiny output without seeing the R code.
He will later handover the shinyApp to his employees (>200) and they will mostly use the offline shinyApp on their desktop (in shiny window). Furthermore the data is very confidential so the client doesn't want his employees to either get csv data or publish the app online or see R code. Because every time they would run the app, they require csv data or codes to generate output.
That's why he doesn’t want a publish button anywhere in the app so that his employees doesn’t publish the app online.
Is there any way to do so? Any suggestions would be much appreciated
Method 1
I feel this is the best way to do it. This will give you an exe setup to install on your clients' server If you find it complicated you can try the below method, but my first preference would be this one.
Method 2
The process of making your standalone app is best explained here.
You can also use this site. If you feel the first is a little ambiguous
It is very much possible, and I do it often. If you have any doubts, you can ask me. This will not show the code to your client, it will be like any other desktop/server app, although the code can be seen if the app is probed, unlike the first method.
You can put the packaged app in a server which serves the local IPs.
I think you can do it without any hassle. Just follow the instructions line by line.
Regards/Revanth Nemani
I am storing my data in S3 bucket provided from Amazon. I am performing analytics in R studio by creating instance.
I am storing my desired result back in my S3 bucket.
I would like to create an front end in visual studio for my results in R. Could anyone guide me on how I could proceed with this ?
I have created the AWS explorer in visual studio.
Any lead and guidance for this idea would be helpful.
But seriously, take a look at shiny
Plagiarizing from that link: "Shiny is an R package that makes it easy to build interactive web apps straight from R. You can host standalone apps on a webpage or embed them in R Markdown documents or build dashboards. You can also extend your Shiny apps with CSS themes, htmlwidgets, and JavaScript actions."
Options (not in any order):
Shiny is an R package that makes it easy to build interactive web apps straight from R
If front-end is all about reports/dashboard, you can push your results in ElasticSearch and then use Kibana on top to present the results as a dashboard.
HIH
How to include a shiny app in a bookdown document? There is an example for including the miniUI in the documentation, but not on how to include an own app.
I tried to include "myapp" in the subdirectory "myapp" either as an integrated file (app.R) or as the two files server.R and ui.R using include_app("myapp") or runApp("myapp"), but this doesn't work.
This question was asked a while back, but I will provide an answer in case anyone else is trying to set this up.
Both functions knitr::include_app() and knitr::include_url() require an URL, which should be the address to the website where you publish your Shiny app. So if you want to build your own app, I suggest you first publish it to the web, and then embed it into the HTML code produced by bookdown using the instructions found here: https://bookdown.org/yihui/bookdown/web-pages-and-shiny-apps.html. Basically, you will need to:
Create a free account at shinyapps.io,
Publish Shiny app (with or without the miniUI package package) following instructions here: https://docs.rstudio.com/shinyapps.io/index.html and
Run the function knitr::include_app() to integrate your Shiny app into your bookdown, as decribed here https://bookdown.org/yihui/bookdown/web-pages-and-shiny-apps.html..
With a FREE account at shinyapps.io, you can publish up to 5 apps. I recommend you try the miniUI package to publish your Shiny app, because it will make the app easily fit into the HTML page generated by bookdown.