Prepping for useR! 2011 – tty connection update

July 22, 2011 | BioStatMatt

I'm putting together my presentation for useR! 2011 titled "Experimenting with a tty connection for R". Hence, I've updated the tty connection patch to work with R versions 2.13.0 and 2.13.1. And, instead of re-listing the patch files and re-writing instructions on their application, I've devoted a small portion of my Code page ... [Read more...]

Comments on an R Connections API

May 9, 2011 | BioStatMatt

I wrote this post months ago but never hit 'Publish'. But, the subject has changed little since then. So, here's to cleaning out the draft folder... R's connections are the heart of data/code/text input and output. Without connections, R would be crippled. Additional connections make R more ... connected ... [Read more...]

Updated tty Connection for R

March 17, 2011 | BioStatMatt

Below are some links to a patch against the R-2.12.2 source code that implements a tty connection for R. Since the release of R-2.13.0 is coming soon, I’ll have a patch for it soon also. What’s a tty connection? The tty connection is an R interface to computer ... [Read more...]

A Not Quite Random Number Generator (NQRNG)

September 13, 2010 | Matt Shotwell

I connected the instrumentation amplifier described in an earlier post to a piezoelectric transducer (buzzer) and made recordings at 5000 gain. The plot below shows 1000 such measurements over 1.0 seconds. There is a 4.0 second (at 1000Hz) sample of the data here piezo.csv. There is a clear sinusoidal signal in these data ... [Read more...]

ECG Project

September 8, 2010 | Matt Shotwell

In an earlier post, I described some ECG signal processing. In fact, these recordings were from my own heart, and I had collected them using a homemade ECG. The following is a repost from my old site describing the device. I assembled an instrumentation amplifier to measure cardiac potentials (i.... [Read more...]

A tty Connection for R

July 26, 2010 | Matt Shotwell

I completed (some time ago) an initial version of a patch for R, version 2.11.1, that adds a POSIX tty connection. The patch is confirmed to compile and works on Mac OS X (thanks to Ashwin Bhat of Georgia Tech) and Debian GNU Linux. However, it should be portable to other ... [Read more...]

Plans for a Real tty Connection

June 2, 2010 | Matt Shotwell

I reverted the name of the tty connection that I described previously, to “serial” connection and updated the patch to R 2.11.1. This name is more appropriate to its function and also makes way for another patch I am working on which implements the full POSIX terminal interface (essentially all of ... [Read more...]

Collect and Parse GPS (NMEA0183) Data in R

May 11, 2010 | Matt Shotwell

I recently wrote a serial connection for R-2.11.0 so that I can communicate with serial devices, for example an old Garmin eTrex Legend. This GPS device is able to output NMEA0183 sentences to a standard serial port (4800,8,1,N). I hooked up the device and used the serial connection to collect ... [Read more...]

A serial Connection for R

April 26, 2010 | Matt Shotwell

***UPDATED: June 3, 2010 – revert name from “tty” to “serial“, R version (2.11.1)*** I’m working on a patch for R (currently 2.11.1) that adds a serial connection feature for POSIX systems (i.e. Linux, Mac OS X, …). The serial connection works like the other connections. For example, the following code opens, writes a ... [Read more...]

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)