• infuser: a template engine for R

    Version 0.1 of infuser was just released on CRAN.

    infuser is a very basic templating engine. It allows you to replace parameters in character strings or text files with a given specified value.

    I would often include some SQL code in my R scripts so that I could make parameters in the SQL code variable. But I was always a bit hesitant on the cleanliness of this. It irked me so much that I finally wrote this very simple package. The infuse function allows me to read in a text file (or a character string for that matter) and infuse it with the requested values.

    Continue reading →

  • sparklines for R

    I’ve always liked the jQuery Sparklines library and today I had a use case for implementing these in one of my Rmarkdown reports.

    While it wouldn’t be too difficult to staticly include a javascript based chart, ideally I would simply want to dynamically generate the sparkline using values computed in R. Luckily we now have htmlwidgets for R. This library makes it stupidly simple to integrate javascript libraries in R code. It simply up to one who has a use case for integrating a javascript library with R to insert some glue code: and so sparklines was born.

    Continue reading →

  • scheduleR receives big update

    For the newcomers; scheduleR is a framework to deploy/schedule R tasks, reports and Shiny apps. The tool has an integrated logging and notification system to ease the maintenance of scheduled R related jobs.

    After a lot of refactoring the tasks have been separated into tasks (e.g. ETL scripts) and reports (rmarkdown). The back-end that handles the execution of R scripts has gotten a polish, as did the UI.

    Continue reading →

  • Compensation in artifical neural networks

    Last week I was at the succesful doctoral defence of Wouter on the role of the cerebellum while walking. During the questions, the topic of compensation came up: if a part of your neural system gets damaged can other parts (over time) take over some of its functionality? The answer is most probably yes, but only to some extent.

    Continue reading →

  • New blog

    %$*! my server crashed… Oh well, might as well take this opportunity to start with a fresh blog platform. I’ll be using Jekyll from now on.

    The texts of my posts have (mostly) been preserved, I will start recovering old posts in the coming days / weeks.

  • scheduleR: a web interface to schedule .R & .Rmd scripts

    This post has been transferred from another blog platform and could have dead links / incorrect lay-out.

    scheduleR is an attempt to create an intuitive interface for scheduling R and Rmarkdown scripts. Especially for the latter, I find the lack of a good scheduling, logging and notification tool the reason for why I don’t use Rmarkdown as much as I could for generating business report / dashboards.

    Continue reading →

  • Introducing simmer: Discrete Event Simulation for R

    This post has been transferred from another blog platform and could have dead links / incorrect lay-out.

    Please note: the syntax described here is no longer up-to-date, please refer to the readme at simmer’s GitHub page.

    The simmer package grew out of a personal need for a simple rapid development discrete event simulation (DES) framework. I work in the hospital sector and at times use a DES approach to simulate hospital processes / patient trajectories. DES can give you a quick look at process bottlenecks and test out the impact of alternative process set-ups.

    Continue reading →