Do R Markdown Parameterized Reports require an R Studio Connect server? - r

Before I invest too much time in it I need to know... Do R Markdown Parameterized Reports require an R Studio Connect server?
If they do that's a little outside of my budget and what I want to get into.
I'd like to be able to send out static .html files people can upload their data.csv into, and another .html file will be spit out based off my scripts and R Markdown.

Parametrized Rmarkdown reports are a feature provided by the rmarkdown package (>= version 0.8). They do not require a RStudio Connect Server. However, you will still need a running R process somewhere to render the report based on the provided parameters.

Related

Different R library for each rstudio server user?

Referencing this question, when I install RSS I specify my R executable by putting the output of which R into my /etc/rstudio/rserver.conf file as rsession-which-r=<path to R.
Is there a way I could have a different value for that for different users?

Creating a Front end with R

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

Generate R Markdown report using VBScript

Is there a way to generate an R Markdown report by calling that or other R scripts in a VBScript on windows 7?
My goal is for the user to be able to click the VBScript and have the R Markdown file generate so that the user does not have to interact with R.
I am able to run an R script from a VBScript (using Rscript.exe), but when it comes to an R Markdown file, there seems to be an issue with knitting/rendering.
I am able to source the R Markdown file from an R Script and I also used an R script to generate the HTML report using Markdown functions (see here), but if I call either of those from a VBScript, the report is not generated. I know the script is running because I also generate a text file (outside of the R Markdown file) as a test.
B/c I lack Admin rights, I don't believe I can use a batch file, but regardless, I think I would encounter the same issue. Thanks for any help/insight!

Running R script on hadoop and mapreduce

I have an R-script that does stuff with a bunch of tweets and I would like to use the same script on the same data but saved in an Hadoop file system. According to this Hortonworks tutorial I could use R code with data from my HDFS, but it is not quite clear.
Can I use the very same R-script, taking advantage of the mapreduce paradigm, by using this Revolution R? Should I change my code or is there a way to execute the same functions optimized for an Hadoop architecture?
My wish would be to write my code on a standard R IDE like R-Studio and then use it, or use the most of it, on my cloud services (such as Microsoft Azure) with mapreduce on the base.
Yes, you can run any R script across different data platform from Hadoop to Spark to Teradata and SQL Server by using environment specific compute context.
Following two links should help you get started on how to use Revolution R / Microsoft R Server on Hadoop:
https://msdn.microsoft.com/en-us/microsoft-r/scaler-hadoop-getting-started
https://github.com/Azure/Azure-MachineLearning-DataScience/blob/master/Misc/MicrosoftR/Samples/NYCTaxi/NYC2013_MRS_LinearBinary.Rmd

R integration with Tableau

I am facing difficulty in integrating R with Tableau.
Initially when I created calculated field it was asking for Rserve package in R and was not alowing to drag field to worksheet. I have installed this package but still it shows error saying
"Error occurred while communicating with the Resrve service.Tableau i unable to connect to the service.Verify that server is running and that you have access privileges"
Any inputs. Thank you
You need to start Rserve. If you successfully install Rserve package, simply run this (on RGui, RStudio or wherever you run R scripts)
> library(Rserve)
> Rserve()
You can test your connection to RServe on Tableau, on Help, Settings and Performance, Manage R Connection.
As of Tableau 9, you can use *.rdata files with Tableau. Tableau 9 will read the first item stored in the *.rdata file. Just open an *.rdata file under "Statistical Files" in the Tableau intro screen.
To do this do:
save(myDataframe, "Myfile.rdata")
This will save the file with the dataframe stored in it. You can save as many items as you want, but Tableau will only read the first. It can read vectors and variables as well if they are in the first item. Note that rdata files compress data quite a bit. I recently compressed 900mb to 25mb. However Tableau will still need to decompress it to use it so be careful about memory.

Resources