Skip to content.

rShape

An R package that enables R users to read data stored in LONI Ucf files.

R has many packages available from the CRAN archive.

The rJava R interface to Java is used.

Running R from a unix command line.

How to Installing R onto an SGI Irix system, in a user's home R libraries.

Usage Notes

Status

Unable to compile a version of R that supports Java interface on IRIX computers - 10 Oct 05, cs

The Problem

install process runs *R CMD INSTALL mcgv" - whose values for CFLAGS (-g -O2) cause illegal intructions in the assember code.

The Solution

Alter the default CFLAGS optimizations to "-g". R compiles, however, it will run more slowly than with the optimizations enabled.

To test rShape:

require(rshape)

coordinates<-read_UCF_coordinates("ucffilename")

values<-read_UCF_default_attributes_values("ucffilename")

write_UCF_with_coordinates_and_default_attribute_values("outputname", coordinates, values, "original_ucffilename_as_structural_template")

Lessons Learned

  • cross platform testing is important
  • difficulty goes up when relying on native compiled code.