Is it possible to have a Shiny App output a file? - r

I am trying to create an easy to use shiny app that uses a R script tool that was made to collect publications by certain authors. This script that was created searches all publications for the specific authors and creates an excel file with a list of their work.
I want to have the Shiny app have an input of a csv file that someone puts in with author's names, then the R script tool that I have would be used to gather all the work from that author, and then the output would be a separate csv file with the list of publications by the author's that was created by the tool.
My question that I have is that I am wondering if this is possible to do, and if so, how would I go about doing it? I don't have extensive knowledge with Shiny, but have worked on creating a csv file input. I am more concerned with being able to link my script and using it to pop out an output of a file as I haven't been able to find any videos or links showing me how to do that.

Related

How can my rendered RMarkdown/Quarto document with html widgets be linked to a live csv?

Correct me if I'm wrong: The examples online are generally for a static data set. The executed R code reads data into an R data frame and creates the html widgets to plot it. Upon rendering the .Rmd or .qmd, that data set is baked into the html document. If you wanted the document to show some new data, you'd have to run the R code again.
Is there a way to create a rendered .html with html widgets that's linked to a live .csv or SQL database? Perhaps there are some R tools that upon rendering the document, create the html/js instructions to read a .csv or .json file?
Looking to have an .html file that can be shared or hosted that doesn't require an R interpreter.

Recipes PDF batch extraction

I am now working with 500 pdf recipes files, which I want to display in my website. How can I batch extract them and display information on PDF to my website? PDF has all the information for recipes. For each recipe, I need to display its description, image, ingredients, instructions, nutrition label and so on. Is there any way so that I don't need to work on it manually?
Do these all have the same basic template for how the information is structured? This isn't really specifically a WordPress issue. One thing you can do is use Go to loop through and process all the files. I played with Go and it's incredibly fast to parse large amounts of information. Maybe you can fiddle with it in this library here https://github.com/unidoc/unidoc.
There are a lot of library options to try in PHP also. Here's just one example https://www.pdfparser.org/. There's documentation here and you can install it via composer. https://www.pdfparser.org/documentation
If every recipe follows the same sort of template, and you want to extract specific details in specific sections of the PDF, it should be easy enough. If you don't mind extracting all the text from a PDF and just display that on your website, it should be easy enough using one of the libraries. If you go the Golang route, you could just parse all the text for each PDF, save them to a file, and just upload them using PHP and have the PHP code insert everything into custom post types or something.

Modifying tables interactively with Shiny

I am trying to create an interface where I can interactively modify column values of a given source csv permanently. It must function somewhat like MS excel - the entire table displays and I can change column values on the fly and the resulting modifications reflect in the source csv saved in a specific server directory. I was wondering if R shiny can do this. I have experience in creating fluid/reactive pages and manipulating display (column display,check boxes,sliders, filtering etc.) but I have no clue as to how the source data itself can be modified using the Shiny GUI. Can someone please provide some direction? What package (if available) is needed etc. I have full write access on the source csv so credentials are not a problem.
Once I have some traction I plan to expand the operations onto a database.
Thanks in advance!

Tie R script and QlikSense software together

I require qliksense to create an Excel file when the user selects a set of tuples and R to automatically pick up this file, perform my script on the file. My script then creates another CSV file which I then want qliksense to automatically pick up and perform some predefined operations on it. Is there any way I can link the two of these software together in such a manner?
So to clarify the flowchart is: Qlik gets a large data set -> the user selects a set of rows and creates csv -> My custom R script (picks up this csv automatically) is run on the csv and creates a new csv -> qlik picks it up (automatically) and visually displays the results of the program
Is there any kind of wrapper software to tie them together? Or is it a better idea to perhaps just make some sort of UI that works with R in the background and the user can manually pass the file through the UI? Thanks for the help.
Check out the R extension that has been developed on http://branch.Qlik.com , extensions are being created and added all the time. You will probably need to create an account to access the project but once you have the direct link is below.
http://branch.qlik.com/#/project/5677d32d7f70718900987bdd

Sending emails through rmarkdown

Is there a way in rmarkdown, where after you create your html document, you can add a button to email a report that is created in the rmarkdown doc after manipulating with tables? Or is this feature only available in Shiny?
And on top of this, is there a way to import new data into an rmarkdown document without using RStudio. So for example, if I created a reproducible rmarkdown document, can I add a button that can add data from a csv or once again is this only available in Shiny?
I am basically trying to figure out a free way to have clients/coworkers take my documents and let them takeover without them knowing how to use R in the future. Shiny doesn't allow me to do this because the free version requires others to have R installed already and copy and paste the code whereas Shiny Pro costs a good bit of money.

Resources