Publications by csgillespie

Shiny benchmarks

15.02.2016

A couple of months ago, the first version of benchmarkme was released. Around 140 machines have now been benchmarked. From the fastest (an Apple i7) which ran the tests in around 10 seconds, to the slowest (an Atom(TM) CPU N450 @ 1.66GHz) which took 420 seconds! Other interesting statistics: Around 6% of people ran BLAS optimised versions of R; ...

1871 sym 4 img

RANDU: The case of the bad RNG

16.02.2016

The German Federal Office for Information Security (BSI) has established criteria for quality random number generator (rng): A sequence of random numbers has a high probability of containing no identical consecutive elements. A sequence of numbers which is indistinguishable from true random’ numbers (tested using statistical tests. It should b...

2809 sym 38 img

RStudio addins manager

31.03.2016

RStudio addins let you execute a bit of R code or a Shiny app through the RStudio IDE, either via the Addins dropdown menu or with a keyboard shortcut. This package is an RStudio addin for managing other addins. To run these addins, you need the latest version of RStudio. Installation The package can be installed via devtools ## Need the latest ...

1592 sym 6 img

R Courses at Newcastle

22.04.2016

Over the next two months I’m running a number of R courses at Newcastle University. May 2016 May 10th, 11th: Predictive Analytics May 16th – 20th: Bioconductor May 23rd, 24th: Advanced programming June 2016 June 8th: R for Big Data June 9th: Interactive graphics with Shiny Since these courses are on  advanced topics, numbers are limite...

1333 sym 4 img

R Courses at London, Leeds and Newcastle

30.08.2016

Over the next few months we’re running a number of R courses at London, Leeds and Newcastle. September 2016 (Newcastle) Sept 12th: Introduction to R Sept 13th: Statistical modelling Sept 14th: Programming with R Sept 15th: Efficient R: speeding up your code Sept 16th: Advanced graphics October 2016 (London) Oct 3rd: Introduction to R Oct 4...

1369 sym 4 img

List of R conferences and useR groups

01.11.2016

Recently Steph Locke asked on twitter if there was a list of R conferences. After some googling, all that I came up was a list of useR groups maintained by Microsoft. While the list was lengthy, it was missing a few groups (and twitter handles). So the other night I created a github repository listing conferences/groups. If you spot any missing g...

821 sym 4 img

benchmarkme Update

09.01.2017

When discussing how to speed up slow R code, my first question is what is your computer spec? It always surprises me when complex biological experiments, costing a significant amount of money, are analysed using a six year old laptop. A new desktop machine costs around £1000 and that money would be saved within a month in user time. Typically th...

2617 sym R (274 sym/6 pcs) 6 img

Input/output benchmarks

22.01.2017

To quantify the impact of the CPU on an analysis, I created the package benchmarkme. The idea is simple. If everyone runs the same R script, we can easily compare machines. One of the benchmarks in the package is for comparing read/write speeds; we write a large CSV file (using write.csv) and read it back in using read.csv The package is on CRAN...

1478 sym R (392 sym/6 pcs) 6 img

Training courses: R, Stan and Scala

25.01.2017

Over the next few months we’re running a number of R, Stan and Scala courses around the UK. Feburary Mon 13 – Introduction to R (London) Tue 14 – Programming with R (London) Wed 15 – Advanced Graphics with R (London) Thur 16 (2-day course) – Predictive Analysis (London) March Tue Mar 21 – R for Big Data (Edinburgh) Mon Mar 27 – ...

1806 sym 4 img

Security: the dangers of copying and pasting R code

07.06.2017

Most of the time when we stumble across a code snippet online, we often blindly copy and paste it into the R console. I suspect almost everyone does this. After all, what’s the harm? Consider this simple piece of R code that performs simple linear regression # Generate data x = rnorm(10) y = rnorm(10) message(“All your base are belong to ...

1214 sym R (225 sym/3 pcs) 6 img