Publications by Roel M. Hogervorst
Running an R Script on a Schedule: Gh-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 ...
4803 sym R (2162 sym/4 pcs) 6 img
Running an R Script on a Schedule: Gitlab
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. But in thi...
6714 sym R (1874 sym/4 pcs) 6 img
Running an R Script on a Schedule: Docker Containers on gitlab
In this tutorial/howto I show you how to run a docker container on a schedule on gitlab. Docker containers are awesome because, once made, they run everywhere! It does not matter what type of computer^[Though I believe there is a problem with ARM based vs other CPU’s]. you have. Once I build a container you can run my container on a linux box, ...
3541 sym R (2113 sym/4 pcs) 4 img
Running an R Script on a Schedule: Overview
There are lots of rstats tutorials about creating beautiful plots, setting up shiny applications and even a few on setting up plumber APIs (but we could use more). However a lot of work consists of running a script without any interaction. This is an overview page for the tutorials I’ve created so far. This overview is for you if you want to kn...
1912 sym R (1263 sym/1 pcs) 2 img
Rectangling (Social) Network Data
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 be...
12179 sym R (9420 sym/18 pcs) 10 img
Predicting links for network data
NETWORKS, PREDICT EDGES Can we predict if two nodes in the graph are connected or not? But let’s make it very practical: Let’s say you work in a social media company and your boss asks you to create a model to predict who will be friends, so you can feed those recommendations back to the website and serve those to users. You are tasked to c...
5728 sym R (15910 sym/28 pcs) 26 img
Rectangling (Social) Network Data, Advanced Options
This walkthrough is a follow up on my previous post about rectangling network data As a recap: we want to predict links between nodes in a graph by using features of the vertices. In the previous post I showed how to load flat files into a graph structure with {tidygraph}, how to select positive and negative examples, and I extracted some node fe...
6544 sym R (5896 sym/9 pcs) 2 img
Stability, Portability and Flexibility Trade-offs
I think a lot about moving single R scripts from someone’s computer to the cloud (another computer). One of the major questions you need to answer is: Can I give my solution to someone else in a way that it ‘just’ works? R is an high level language. This allows you to write out the steps you want to take and that the actual implementation...
7290 sym 8 img
TIL: Vectorization in Advent of Code Day 15
I spend a lot of time yesterday on day 15 of advent of code (I’m three days behind I think). Advent of code is a nice way to practice your programming skills, and even though I think of myself as an advanced R programmer I learned something yesterday! The challenge is this: While you wait for your flight, you decide to check in with the Elves b...
4852 sym R (6716 sym/7 pcs) 6 img
Running an R Script on a Schedule: Azure Functions (Serverless)
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 th...
14364 sym R (2162 sym/6 pcs) 8 img