Adding Active Directory authentication to RStudio Server Open Source edition

Have you installed the statistical R language and RStudio Server in a corporare environment and you would like to authenticate users using Active Directory instead of local unix users and passwords? It is easy, you just need to install libpam-krb5… ;-) Below a sample Dockerfile if you want to install RStudio Server in a Docker container… FROM rocker/rstudio RUN apt-get update ADD krb5.conf /etc RUN apt-get install -y krb5-config libpam-krb5 RUN apt-get install -y openjdk-8-jdk r-cran-rjava #setup R configs RUN echo “r <- getOption(‘repos’); r[‘CRAN’] <- ‘http://cran....

March 28, 2018 · 2 min · 265 words · Matteo Redaelli

Google uses R: a new open-source package for estimating causal effects in time series

In this blog post Google confirms its adoption of the opensource statistical environment R (see my R introduction) releasing a new R package.. “How can we measure the number of additional clicks or sales that an AdWords campaign generated? How can we estimate the impact of a new feature on app downloads? How do we compare the effectiveness of publicity across countries? In principle, all of these questions can be answered through causal inference […] How the package works The CausalImpact R package implements a Bayesian approach to estimating the causal effect of a designed intervention on a time series....

September 16, 2014 · 1 min · 176 words · Matteo Redaelli

dump_tweets.R a tool for saving tweets and user data to a database

dump_tweets.R is a tool for searching tweets and (recursively) crawl users from twitter: Data are then saved to a MySQL database and can finally be exported to .RData files dump_tweets.R is sponsorized by Associazione Rospo Example: Rscript search.R -q “#opensource” 2014-01-20 20:53:43 INFO::Connecting to TWITTER… 2014-01-20 20:53:43 INFO::Connecting to database=twitter, host=localhost with user=root 2014-01-20 20:53:43 INFO::using UTF8 code 2014-01-20 20:53:43 INFO::Searching for q=#opensource, sinceID=0 2014-01-20 20:53:57 INFO::Found 191 tweets 2014-01-20 20:53:57 INFO::maxID=425355265857187841 2014-01-20 20:53:57 INFO::Saving data to tweet table… 2014-01-20 20:53:58 INFO::saving data to search_results table…

January 20, 2014 · 1 min · 86 words · Matteo Redaelli

Retreiving and analyzing Facebook data with R

As suggested by Julianhi’s Blog post, I installed the CRAN Rfacebook package for the R statistical environment and I created a sample igraph with 20 of my “facebook friends” ## See examples for fbOAuth to know how token was created. ## Getting my network of friends load(“fb_oauth”) mat <- getNetwork(token=fb_oauth, format=“adj.matrix”) library(igraph) network <- graph.adjacency(mat, mode=“undirected”) pdf(“network_plot.pdf”) plot(network) dev.off() Comments: Jbovnd - Dec 0, 2019I do agree with all of the ideas you’ve offered to your post....

November 21, 2013 · 2 min · 215 words · Matteo Redaelli

Dump_tweets.R: how to collect interesting tweets

Do you need a simple R script for incremental downloading all tweets related an hashtag (or any words) and saving them to a database? If yes, look at dump_tweets.R project: feel free to clone my repository and push any fixes or new features Usage: ./dump_tweets.R –db /var/www/dump_tweets.R –add mysearches.csv ./dump_tweets.R –db /var/www/dump_tweets.R –show ./dump_tweets.R –db /var/www/dump_tweets.R ./dump_tweets.R –db /var/www/dump_tweets.R –remove opensource Enjoy

July 6, 2013 · 1 min · 62 words · Matteo Redaelli