rEngine.assign("scantime", scanTime);
rEngine.assign("intensity", intensity);
// Initialize.
rEngine.eval("mz <- " + mz, false);
rEngine.eval("numPoints <- length(intensity)", false);
// Construct xcmsRaw object
rEngine.eval("xRaw <- new(\"xcmsRaw\")", false);
rEngine.eval("xRaw@tic <- intensity", false);
rEngine.eval("xRaw@scantime <- scantime * " + SECONDS_PER_MINUTE,