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,
false);
rEngine.eval("xRaw@scanindex <- 1:numPoints", false);
rEngine.eval("xRaw@env$mz <- rep(mz, numPoints)", false);
rEngine.eval("xRaw@env$intensity <- intensity", false);