A team of R consultants
At ThinkR we are passionate about R. We are a team of developers and R consultants, with solid knowledge and skills in everything R-related — development, application deployment, or infrastructure .
Contact us if you need a team of experts to carry out your R projects:
- Package creation
- Implementation of good development practices
- Code optimization
- Shiny application
- Installation and configuration of Rstudio Connect
- Rstudio server or ShinyProxy with Docker
- Advanced R training
2024-10-14 / Yohann Mansiaux
Beyond Functions: How to Enrich an R Package with Data
As package developers, we often focus on custom functions, their documentation, and unit testing. To provide a more complete user experience, it can be helpful to include data within the package. Here’s everything you need to know! If you’re not familiar with unit testing, we recommend reading our article on the subject: : https://rtask.thinkr.fr/expectations-verified-dive-into-the-world-of-unit-tests-with-expect_/ Short on time? Here’s the gist ...
2024-10-04 / Murielle
Expectations, Verified! Dive into the World of Unit Tests with expect_*()
Unit tests are essential in the development of an R package. They ensure that your functions work as expected while protecting you from regressions when you improve or modify your code. Thanks to the {testthat} package, writing and automating tests in R becomes simple and intuitive. At the core of this approach are the expect_*() functions, which play a central ...
2024-09-03 / Yohann Mansiaux
Boost your shiny app with sparkling data visualizations: a deep dive into Chart.js JavaScript library
Let’s continue our exploration of integrating JavaScript code into a {shiny} application! We will show how to move beyond the classic graphs produced in base R or with {ggplot2} to explore the interactive dataviz production libraries of JavaScript, particularly the Chart.js library. If you missed our first article on integrating JavaScript libraries into a {shiny} application I invite you to ...
2024-08-26 / Colin Fay
{golem} 0.5.0 is now available
Header image generated by ChatGPT We are thrilled to announce the release of {golem} version 0.5.0! This update comes packed with new features, enhancements, and bug fixes that will streamline your Shiny app development process. You can download the latest version from your favorite CRAN repository, or by running the following command in R: pak::pak( “thinkr-open/[email protected]” ) What’s New in This Version? ...
2024-05-17 / Sébastien Rochette
gitlabr V2.1.0 – gitlab-ci with ‘pak’ and functions to deal with groups on GitLab
A lot of cleanups, new features, and bug fixes for this new version of ‘gitlabr’. You will find brand-new CI/CD templates and functions to manage GitLab groups from R. Brand new gitlab-ci with ‘pak’, ready to use The template for checking R packages uses {pak} for dependency management. You will no longer have issues with missing system dependencies. You should ...
2024-04-29 / Yohann Mansiaux
Pimping your shiny app with a JavaScript library : an example using sweetalert2
You think that some of the components of {shiny} are not very functional or downright austere? Are you looking to implement some feature in your app but it is not available in the {shiny} toolbox? Take a look at JavaScript! JavaScript is a very popular programming language that is often used to add features to web pages. With HTML and ...
2024-02-21 / Vincent Guyader
Performance Optimization in R: An Example Using Memoise
Context Whether during the (training sessions) I can provide or the (coaching) sessions I can conduct, there is often a moment when I go on a long rant about the power and usefulness of caching. How awesome it is, not so complicated to set up, and super interesting. The last time I gave a presentation was to talk about ({targets}), ...
2024-02-16 / Swann Floc’hlay
Tame your namespace with a dash of suggests
We’ve all felt it, that little wave of shiver through our skin as we watch the check of our newest commit running, thinking “Where could this possibly go wrong?”. And suddenly, the three little redeeming ticks 0 errors ✔ | 0 warnings ✔ | 0 notes ✔ Allelhuia! 🎉 We git commit the whole thing, we git push proudly our ...
2023-12-12 / Sébastien Rochette
‘fusen’ v0.6.0 (beta): a new Rmd/Qmd parser with ‘lightparser’ to try before release
{fusen} now relies on {lightparser} to detect the different parts of a Rmd or a Qmd file before inflating your flat file as a R package. Before the release on CRAN, I need you to test the development version and tell me if there are any edge cases with your flat files. TL;DR Please try the pre-release version of {fusen} ...
2023-12-04 / Florence Mounier
{checkhelper} is on CRAN: so you don’t have to be afraid to run a check
You’ve put together a great package that you’re proud of and you’d like to share it with the R community? Maybe even submit it to CRAN? Before you do that, you know that a few checks are recommended… yes you do! but devtools::check() returns 7 warnings, 12 notes and 200 unclear lines so…. So you’ve come to the right place! ...
2023-07-21 / Yohann Mansiaux
fusen v0.5: Gotta inflate ’em all !
No more amnesia for {fusen}! With v0.5, it now has “memory”, allowing you to inflate all your flat files simultaneously. The aim of this latest version of {fusen} is to provide an ever smoother package development experience, for both novice and experiences users. {fusen} continues to make life easier for package creators. One of the main changes in this new ...
2023-06-05 / Vincent Guyader
Mastering file download in shiny
But why does downloadHandler now return an empty file!? DownloadHandler context When we start working with {shiny}, we often reach a point where it is necessary to offer the user the option to download a document generated by the application. This document can be a PDF report, a PNG or JPEG image, or anything else. The appropriate function for this ...
2023-06-01 / Sébastien Rochette
{attachment} v0.4.0: Breaking changes and configuration file for a better experience
{attachment} v0.4.0 stores your parameters in a configuration file for an easier use during your package development: run att_amend_desc() from anywhere, it will re-use your last set of parameters. This comes with some breaking changes for a better experience. The goal of attachment is to help to deal with package dependencies during package development. It also gives useful tools ...
2023-03-15 / Colin Fay
{golem} 0.4.0 is now available
The new version of {golem} is available! Read the complete version of this article at https://golemverse.org/post/golem-0.4.0-release-on-cran/ What’s up with this new version? Lighter dependency tree When we release the first version of {golem} on CRAN, we made the decision that all {golem}-based app should depend on {golem}. This was a conscious decision ,and we made it because {golem} comes with a bunch of internal functions that are used ...
2022-10-04 / Sébastien Rochette
Package dev with {fusen} & {attachment}: load all functions of a flat, manage qmd and auto-fill Remotes field
One aim of our open-source packages at ThinkR is to make our development workflows easier. {attachment} and {fusen} are developed maintained to help packages development and maintenance. Inception… If they help us every day, they can probably help you as well! In this blog post, I present the lastest changes of these two packages. If you want to know how ...
2022-08-19 / Sébastien Rochette
Installation of R 4.2 on Ubuntu 22.04.1 LTS and tips for spatial packages
It is again this time in your Ubuntu user’s life where you plan to upgrade your server installation from Ubuntu 20.04 to Ubuntu 22.04 LTS. Indeed, the first point release 22.04.1 is now there, and you’d like somebody else to try it for you before loosing all your work. Let me do it for you ! We will also use ...