Creating a Node.js Website with GitHub Copilot Workspace Using Best Development Practices in R

As a developer primarily focused on R, I strive to follow good development practices: writing clear user documentation with articles and examples; creating robust tests; and automating checks and deployments with CI/CD workflows. These habits have allowed me to build reliable and maintainable …

Read more

How to debug your package in a {rhub} fedora container before sending to CRAN?

It is not the first time I present how to debug on an other platform before sending your package to CRAN. This time, before submission {checkhelper} failed on ‘fedora’ image provided by {rhub}. How to debug your package using this platform when your using an other OS? Let’s speak about docker and …

Read more

Share your R work following good dev practices from a single notebook

You write R scripts and you would like to share them with other users, in a sustainable and maintainable way. You already write your code in a notebook (Rmarkdown or Quarto) and share its HTML output. You would like to document the chunks, and make this documentation visible in a separate HTML page. …

Read more

Add {tmap} point layer with multiple symbol border colors and width

It’s been a while since my last blog post. Indeed, my free time is used to improve packages like “{fusen}: Inflate your package from a simple flat Rmd” , “{attachment}: Tools to deal with dependencies in scripts, Rmd and packages” or “{gitlabr}: An R client for the GitLab API”. Hence, drawing some …

Read more

I do not have time (to practice)

I’d really like to be able to do this, and I know I will benefit from it, but I do not have time or I did not find time to try it… […] How much time do you plan to take to read this blog post? Will you read until the end? Completely or the headlines only? […] If you do not have time …

Read more

Debug your package that failed on CRAN with {rhub}

If you sent packages on CRAN, you may have encountered some fails on different operating systems configurations that you never heard about before: Solaris, debian clang, fedora gcc, … Package {rhub} allows to test your package on some of them, prior to sending to CRAN. But, how to debug directly on …

Read more

How to debug your package on Win-Builder before sending to CRAN?

CRAN submission can be difficult as your package is checked on multiple OS and R versions that you may not be able to check yourself locally. Thankfully, some services like {rhub} and Win-Builder prevent some unfortunate CRAN errors. But how to debug code that is run on an external server, without …

Read more

Date-time Conversion in R with format and strptime

Each time I want to extract or show a specific attribute of a date or a time, I am lost in the documentation. What letter do I need to use in format() to get the name of the day written in full, in my language, from the current date? Is it “%Y %m %d”, “%a %b %d”, …? So let’s keep it short this time! …

Read more