Deploy to Shinyapps.io from Github Actions

Last week I spend a few hours figuring out how to auto deploy a shiny app on 2 apps on shinyapps.io from github. You can see the result on this github repository. This github repository is connected to two shiny apps on shinyapps.io. Here is what I envisioned, every new commit to the main branch will be published to the main app. We could then lock down the main branch so that no one can directly commit to main. [Read More]

Running an R Script on a Schedule: Azure Functions (Serverless)

timer-trigger in Azure Functions

In this post I will show how I run an R script on a schedule, by making use of ‘serverless’ computing service on the Microsoft Cloud called Azure Functions. In short I will use a custom docker container, install required software, install required r-packages using {renv} and deploy it in the Azure cloud. I program the process in azure such that the it runs once a day without any supervision. [Read More]

Rectangling (Social) Network Data

Preparing data for link prediction

In this tutorial I will show you how we go from network data to a rectangular format that is suited for machine learning. Many things in the world are graphs (networks). For instance: real-life friendships, business interactions, links between websites and (digital) social networks. I find graphs (the formal name for networks) fascinating, and because I am also interested in machine learning and data engineering, the question naturally becomes: How do I get (social) network data into a rectangular structure for ML? [Read More]

Running an R Script on a Schedule: Gh-Actions

Tweeting from github actions

In this tutorial I have an R script that runs every day on github actions. It creates a curve in ggplot2 and posts that picture to twitter. The use case is this: You have a script and it needs to run on a schedule (for instance every day). Other ways to schedule a script I will create a new post for many of the other ways on which you can run an R script on schedule. [Read More]

Running an R Script on a Schedule: Gitlab

Tweeting from gitlab actions

In this tutorial I have an R script that creates a plot and tweets it, it runs every day on gitlab runners. The use case is this: You have a script and it needs to run on a schedule (for instance every day). Other ways to schedule a script I will create a new post for many of the other ways on which you can run an R script on schedule. [Read More]

Running an R Script on a Schedule: Heroku

Tweeting from heroku

In this tutorial I have an R script that runs every day on heroku. It creates a curve in ggplot2 and posts that picture to twitter. The use case is this: You have a script and it needs to run on a schedule (for instance every day). In 2018 I wrote a small post how to run an R script on heroku. The amazing thing is that the bot I created back then is still running! [Read More]

Reading in an epub (ebook) file with the pubcrawl package

In this tutorial I show how to read in a epub file (f.i. from your ebook collection on you computer) into R with the pubcrawl package. In emoji speak: πŸΊπŸ“–πŸ“¦ . I will show the reading in part, (one line of code) and some other actions you might want to perform on textfiles before they are ready for text analysis. After you read in your epub file you can do some cool analyses on it, but that is part of the next blogpost. [Read More]