Articles by Colin Fay

Advent of Code 2019-08 with R & JavaScript

December 7, 2019 | Colin Fay

Solving Advent of Code 2019-08 with R and JavaScript. [Disclaimer] Obviously, this post contains a big spoiler about Advent of Code, as it gives solutions for solving day 8. About the JavaScript code The JavaScript code has been written in the same ...
[Read more...]

Advent of Code 2019-07 with R

December 6, 2019 | Colin Fay

Solving Advent of Code 2019-07 with R. [Disclaimer] Obviously, this post contains a big spoiler about Advent of Code, as it gives solutions for solving day 7. Instructions Find the instructions at: https://adventofcode.com/2019/day/7 R solution ve... [Read more...]

Advent of Code 2019-06 with R

December 5, 2019 | Colin Fay

Solving Advent of Code 2019-06 with R (and no JavaScript this time). [Disclaimer] Obviously, this post contains a big spoiler about Advent of Code, as it gives solutions for solving day 6. Instructions Find the instructions at: https://adventofcode.... [Read more...]

Advent of Code 2019-05 with R & JavaScript

December 4, 2019 | Colin Fay

Solving Advent of Code 2019-05 with R and JavaScript. [Disclaimer] Obviously, this post contains a big spoiler about Advent of Code, as it gives solutions for solving day 5. [Disclaimer bis] I’m no JavaScript expert so this might not be the perfect... [Read more...]

Advent of Code 2019-04 with R & JavaScript

December 3, 2019 | Colin Fay

Solving Advent of Code 2019-04 with R and JavaScript. [Disclaimer] Obviously, this post contains a big spoiler about Advent of Code, as it gives solutions for solving day 4. [Disclaimer bis] I’m no JavaScript expert so this might not be the perfect... [Read more...]

Advent of Code 2019-03 with R & JavaScript

December 2, 2019 | Colin Fay

Solving Advent of Code 2019-03 with R and JavaScript. [Disclaimer] Obviously, this post contains a big spoiler about Advent of Code, as it gives solutions for solving day 3. [Disclaimer bis] I’m no JavaScript expert so this might not be the perfect... [Read more...]

Advent of Code 2019-02 with R & JavaScript

December 1, 2019 | Colin Fay

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... [Read more...]

Advent of Code 2019-01 with R & JavaScript

November 30, 2019 | Colin Fay

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... [Read more...]

Getting started with {golem}

September 29, 2019 | Colin Fay

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 ... [Read more...]

JavaScript cont in R

September 22, 2019 | Colin Fay

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" ## [... [Read more...]

Back from useR! 2019

July 13, 2019 | Colin Fay

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... [Read more...]

Create a CLI for R with npm

May 21, 2019 | Colin Fay

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 t... [Read more...]

Building a Shiny App as a Package

April 30, 2019 | Colin Fay

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 ... [Read more...]

{attempt} 0.3.0 is now on CRAN

April 14, 2019 | Colin Fay

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 i... [Read more...]

Building Big Shiny Apps — A Workflow 2/2

March 4, 2019 | Colin Fay

Second part of the blog transcription of the talk I’ve given during the eposter session of the rstudio::conf(2019). Read the first part here. Building Big Shiny Apps: step by step Step 1: Designing Don’t rush into coding. I know you want to, because it’s what we like ...
[Read more...]

A little trick for debugging Shiny

February 3, 2019 | Colin Fay

This is gonna be a short post about a little trick I’ve been using while developing Shiny Apps. (Spoiler: nothing revolutionary) A browser anywhere, anytime The first thing to do is to insert an action button, and a browser() in the observeEvent() watching this button. This is a standard ...
[Read more...]

Watch if R is running from Shiny

January 28, 2019 | Colin Fay

Today I discovered that the tag of a Shiny App gets the shiny-busy class when computation is done in the R process. Which means that you can potentially watch with JavaScript if the R process is running. TIL — Shiny Apps switch to t... [Read more...]
1 2 3 4

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)