June 2018

(Unit) Testing Shiny apps using testthat

June 26, 2018 | 0 Comments

This blog post explains how to test a Shiny app using shinytest and testthat packages. Basic knowledge about Shiny apps and the principle of unit testing using testthat is useful, but not required here. Example of a Shiny app The packages shiny (current version: 1.1.0), testthat (2.0.0) and shinytest (1.3.0) are required for ... [Read more...]

Models are about what changes, and what doesn’t

June 25, 2018 | 0 Comments

How do you build a model from first principles? Here is a step by step guide. Following on from last week’s post on Principled Bayesian Workflow I want to reflect on how to motivate a model. The purpose of most models is to understand change, and yet, considering what ...
[Read more...]

Storrrify #satRdayCDF 2018

June 25, 2018 | 0 Comments

On Saturday I was at my second satRday conference this year, lucky me! I got to attend satRday Cardiff which was a great experience. I gave a talk about rOpenSci onboarding system of packages, find my slidedeck here and other slidedecks at this address. A lot of R goodness! As ... [Read more...]

A package for tidying nested lists

June 25, 2018 | 0 Comments

Data == knowledge! Much of the data we use, whether it be from government repositories, social media, GitHub, or e-commerce sites comes from public-facing APIs. The quantity of data available is truly staggering, but munging JSON output into a format that is easily analyzable in R is an equally staggering undertaking. ...
[Read more...]

May 2018: “Top 40” New Packages

June 25, 2018 | 0 Comments

While looking over the 215 or so new packages that made it to CRAN in May, I was delighted to find several packages devoted to subjects a little bit out of the ordinary; for instance, bioacoustics analyzes audio recordings, freegroup looks at some abstract mathematics, RQEntangle computes quantum entanglement, stemmatology analyzes ...
[Read more...]

Shiny 1.1.0: Scaling Shiny with async

June 25, 2018 | 0 Comments

This is a significant release for Shiny, with a major new feature that was nearly a year in the making: support for asynchronous operations! Without this capability, when Shiny performs long-running calculations or tasks on behalf of one user, it stalls progress for all other Shiny users that are connected ...
[Read more...]

Models are about what changes, and what doesn’t

June 25, 2018 | 0 Comments

Following on from last week’s post on Principled Bayesian Workflow I want to reflect on how to motivate a model. The purpose of most models is to understand change, and yet, considering what doesn’t change and should be kept constant can be equally important. I will go through ... [Read more...]

Running Python inside the RStudio Server IDE

June 25, 2018 | 0 Comments

A great many R users will have to run some python code from time to time, and this short video from our Head of Data Engineering, Mark Sellors outlines one approach you can take that doesn't mean leavin... [Read more...]

Rollercoaster III: yet more on Google Scholar

June 25, 2018 | 0 Comments

In a previous post I made a little R script to crunch Google Scholar data for a given scientist. The graphics were done in base R and looked a bit ropey. I thought I’d give the code a spring clean – it’s available here. The script is called ggScholar....
[Read more...]

Demography simulations by @ellis2013nz

June 25, 2018 | 0 Comments

Total fertility rate This is my second blog post while familiarising myself with the arithmetic of demography. In my earlier post I looked at how life expectancy is calculated. “Period life expectancy at birth” as estimated by national statistical offices is actually best thought of as a summary of death ... [Read more...]

A Different Free Kick Ladder

June 24, 2018 | 0 Comments

Each week triplemfooty tweets out a free kick ladder that is based only on total free kick differential throughout the season. But what if we did a ladder in the same style of the home and away ladder. 4 points for a win (winning free kick count in game) 2 points for ...
[Read more...]

Switching to blogdown, Netlify and Travis

June 24, 2018 | 0 Comments

The problem Some time ago, I started a blog. I actually did not post a whole lot of stuff though. I was using Jekyll, but my set-up was rather brittle and there were a few problems: I could not use R Markdown directly. I always had to knitr manually to ...
[Read more...]

Dealing with missing data in ANOVA models

June 24, 2018 | 0 Comments

The analysis of variance, or ANOVA, is among the most popular methods for analyzing how an outcome variable differs between groups, for example, in observational studies or in experiments with different conditions. But how do we conduct the ANOVA when there are missing data? In this post, I show how ...
[Read more...]

Switching to blogdown, Netlify and Travis

June 24, 2018 | 0 Comments

The problem Some time ago, I started a blog. I actually did not post a whole lot of stuff though. I was using Jekyll, but my set-up was rather brittle and there were a few problems: I could not use R Markdown directly. I always had to knitr manually t... [Read more...]

Why R 2018 Winners

June 24, 2018 | 0 Comments

How we did it The winners So it’s here… After lots of entries (147 to be precise), we can finally announce the winner of the WhyR 2018 Competition! But first, we have to tell you quickly about how we picked the winner. How we did it So it really wasn’t ...
[Read more...]

#19: Intel MKL in Debian / Ubuntu follow-up

June 24, 2018 | 0 Comments

Welcome to the (very brief) nineteenth post in the ruefully recalcitrant R reflections series of posts, or R4 for short. About two months ago, in the most recent post in the series, #18, we provided a short tutorial about how to add the Intel Math Kernel Library to a Debian or ... [Read more...]
1 2 3 4 5 15

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)