Publications by Colin Fay
{attempt} 0.3.0 is now on CRAN
Last week, a new version of {attempt} was published on CRAN. This version includes some improvements in the current code base, and the addition of new functions. You can get it with our old friend install.packages install.packages("attempt") News in version 0.3.0 library(attempt) packageVersion("attempt") ## [1] '0.3.0' Newcomers in this versi...
2556 sym R (3108 sym/14 pcs)
Building a Shiny App as a Package
Shiny App as a Package In a previous post, I’ve introduced the {golem} package, which is an opinionated framework for building production-ready Shiny Applications. This framework starts by creating a package skeleton waiting to be filled. But, in a world where Shiny Applications are mostly created as a series of files, why bother with a packag...
7749 sym R (1657 sym/7 pcs)
Create a CLI for R with npm
How to build a CLI for R, with npm. Background This blog post was triggered by a discussion on Twitter with Martin Skarzynski, who was looking for a way to build a CLI that launches an RScript. Here’s a way to do this using npm. Please note that this blog post won’t teach you how to build the command line tool, it will quickly go over the way...
1714 sym R (557 sym/9 pcs)
shinyApp(), runApp(), shinyAppDir(), and a fourth option
This title might sounds a little bit weird so let’s being with a little bit of context. It all started with this issue on the {golem} package, which reflects a discussion we previously had inside the team. Also, two weeks ago, I received a tweet on the very same subject, which can be summarised as such: “should we use shinyApp() or runApp() w...
9560 sym R (5262 sym/19 pcs) 116 img 1 tbl
Back from useR! 2019
I’m back from useR! 2019!, Toulouse, where I gave one talk and a workshop. Here are the links to the materials. 2019-07-08 Contributing to the R ecosystem useR! newbie session A short talk about things you can do as a beginner to contibute to the R ecosystem. Slides: https://speakerdeck.com/colinfay/contributing-to-the-r-ecosystem 2019-07-09 ...
1681 sym
One week as a Shiny dev, seen through Google search
Some days ago I read an article on dev.to, entitled something like “One week as a Software developer – what did I search?” (I can’t find back the link 🙁 ). And then, I thought… hey, I should do that too! Getting the data You can download your browser data at takeout.google.com/. In a matter of minutes, I had a beautiful JSON which I ...
3584 sym R (5627 sym/11 pcs) 2 img
JavaScript cont in R
One thing I like about JavaScript is the const declaration method, which allows you to declare a variable one time, and that variable can’t be reassigned after that. I.e, this piece of code will throw an error: node -e "const x = 12; x = 14" ## [eval]:1 ## const x = 12; x = 14 ## ^ ## ## TypeError: Assignment to constant va...
2134 sym R (1447 sym/6 pcs)
Getting started with {golem}
A little blog post about where to look if you want to get started with {golem}, and an invitation to code with us in October. go-what? If you’ve never heard about it before, {golem} is a tool for building production-grade Shiny applications. With {golem}, Shiny developers have a toolkit for making a stable, easy-to-maintain, and robust for prod...
830 sym
Advent of Code 2019-01 with R & JavaScript
Solving Advent of Code 2019-01 with R and JavaScript. [Disclaimer] Obviously, this post contains a big spoiler about Advent of Code, as it gives solutions for solving day 1. [Disclaimer bis] I’m no JavaScript expert so this might not be the perfect solution. TBH, that’s also the case for the R solution. About the JavaScript code The JavaScrip...
1094 sym R (1077 sym/3 pcs)
Advent of Code 2019-02 with R & JavaScript
Solving Advent of Code 2019-02 with R and JavaScript. [Disclaimer] Obviously, this post contains a big spoiler about Advent of Code, as it gives solutions for solving day 2. [Disclaimer bis] I’m no JavaScript expert so this might not be the perfect solution. And TBH, that’s also the case for the R solution. About the JavaScript code The JavaS...
1351 sym R (2348 sym/8 pcs)