Code

R Related

  • A tty Connection Patch

    This patch adds a tty connection to R. The tty connection is an interface to POSIX terminals, including purely software terminals, and those that connect to hardware, such as a serial port. Details of the POSIX terminal, as implemented by the GNU C library are found in the Low-Level Terminal Interface chapter (chapter 17) of the GNU libc manual, and the termios.h header file.

    The files above are named according to the version of R that they patch. Because the tty connection depends on the termios.h header file, it is necessary to patch the autoconf configuration file configure.ac. Hence, before the patched code may be compiled, it is necessary to regenerate the configure script using autoconf. Patch files without the +conf string in their name only patch the configure.ac file. Those with the +conf string include the patched configure script.

    The following shell typescript illustrates the simplest means to apply the patch and compile the patched R source in a Linux environment, assuming the normal R build requirements are met:

    wget http://cran.r-project.org/src/base/R-2/R-2.13.1.tar.gz
    tar -xvzf R-2.13.1.tar.gz
    cd R-2.13.1
    wget http://biostatmatt.com/R/R-2.13.1-tty+conf.patch
    patch -p1 < R-2.13.1-tty+conf.patch
    ./configure && make
    
  • Packages

    • sas7bdatAn experimental SAS database reader. Also on GitHub.
    • profdpm: An R package to accompany my dissertation.
  • Miscellaneous Scripts

AVR ATmega168 Code

Other