Maëlle's R blog

Showcase of my (mostly R) work/fun

Why I like XPath, XML and HTML

One of my favorite tool is XPath, the query language for exploring XML and HTML trees. In this post, I will highlight a few use cases of this “angle-bracket crunching tool” and hope to convince you that it’s an awesome thing to know about and play with. Many thanks to Christophe Dervieux for useful feedback on this post! Mille mercis ! Brief intro to XPath in R Say I have some XML,

8 (octo!) GitHub Tips

I’m spending quite a lot of my working time on GitHub, so have taken some habits. Maybe some of them can be useful to you! 1: How to get started I’ve never actually taught git and GitHub, but I like sharing these useful links: Happy Git and GitHub for the useR by Jenny Bryan, the STAT 545 TAs, Jim Hester. It includes a big picture section “Why Git? Why GitHub?

How to become a better R code detective?

Huge thanks to Hannah Frick for her useful feedback on this post! Vielen Dank! This post was featured on the R Weekly podcast by Eric Nantz. When trying to fix a bug or add a feature to an R package, how do you go from viewing the code as a big messy ball of wool, to a logical diagram that you can bend to your will? In this post, I will share some resources and tips on getting better at debugging and reading code, written by someone else (or yourself but long enough ago to feel foreign!

Draw me a project

I’ll be giving a remote keynote talk at the Rencontres R (French R conference) on July the 12th, all in French. This blog post is a written version of my presentation, but in English. I decided to not talk about package development for once, but rather about workflows and how to structure & run an analysis.1 Many thanks to Christophe Dervieux for useful feedback on this post! Merci beaucoup !

Server-side MathJax rendering with R?

Edit: now there is an R package for server-side MathJax rendering, katex by Jeroen Ooms. Whilst I most certainly do not write LaTeX formulas on the regular anymore, I got curious about their MathJax rendering on websites.1 In brief : your website source contains LaTeX code, and the MathJax JS library (self-hosted or hosted on a CDN) transforms it into something humans can understand: some HTML with inline CSS but also some MathML for screen-reader users.