Reading .xlsx files into R, quickly

The gdata library is fantastic for reading small .xls or .xlsx files into R, but it can be very slow for large files. Today I had to read data from the second sheet of a 64Mb .xlsx file. It should have gone something like

library(gdata)
my.data <- read.xls("myfile.xlsx", sheet=2, header=TRUE)

but R just hung there, unresponsive, for minutes.

Continue reading

Compiling a new kernel module to use hid-core for a Wacom Bamboo Pad

I previously built a custom kernel to use my Bamboo Pad under Ubuntu via the hid driver. This has proved to be a pain, as the kernel seems to be periodically updated by Ubuntu, which renders my system unstable.

So, now, after learning about building drivers from the wacom list (unfortunately I haven’t managed to get the Bamboo working with the wacom driver), I have tried just building a custom hid driver, as follows:

Continue reading