About R6 and parent exposure.
Default inheritance
By default, R6 objects can only herit from their direct parent. But you may need to create an inheritance which goes along the family tree.
For example, we need to create a grand-child class P...
A quick exploration of Game of Thrones characters names, and the beginning of an answer to the question “Why on earth can’t I remember them all?”
First, get the data
For this exploration, we first need to get the names of all characters from t...
A short tutorial about how to share objects between all instances of an R6 class.
When you create a new object which is an instance of an R6 class, it contains its own data fields — i.e. one change in an object is not reflected inside all the i...
An excursion in the world of Julia.
LoremJulia
A basic lorem ipsum generator made in Julia.
Install
Pkg.clone("git@github.com:ColinFay/LoremJulia.git")
Launch
In Julia, using LoremJulia, then:
lorem_txt gives a full lorem ipsum text of...
Active binding, also known as “That cool stuff from {R6}”.
What on earth is binding?
First things first: what is binding? You already know the answer to that question: it’s the simple act of assigning a value to a name/symbol. For example:
# ...
I took a studious resolution for this summer: update, clean and create better docs for my old packages which are on the CRAN. languagelayeR is the first to go!
languagelayer
This package offers a language detection tool by connecting to the la...
Some random explanations about programming with tidy eval.
What on earth is evaluation?
So, let’s start with a simple question: what is evaluation? Evaluation is the process of analyzing an expression, in order to give the user something back....
A quick to-do list brought back from useR!2017.
Last week, ThinkR had the chance to go to useR!2017, Brussels. Here’s some stuffs I’ve brought back, in the form of a summer to-do list.
purrr all the things
I’ve been using purrr on a non reg...
Digging into a not so special type of R functions, in order to make an emoji-pizza-dplyr-slice one.
What are infix functions?
In R, most of the functions are “prefix” - meaning that the function name comes before the arguments, which are put b...
proustr is now on CRAN.
An R Package for Marcel Proust’s A La Recherche Du Temps Perdu
This package gives you access to all the books from Marcel Proust “À la recherche du temps perdu” collection. This collection is divided in books, which are...