I am using xts and am loading 100 to 1000 files in a loop. Each file is between 50k to 300k lines. I am using the latest version of R 2.15.1 on Windows 7 64 bit. I have the same issue on Ubuntu Linux with R version 2.14.X.
The code below will regularly crash R:
library(xts)
N <- 1e6
for(i in 1:1000) {
allTimes <- Sys.time()-N:1
x <- NULL
x <- xts(,allTimes)
sampTimes <- allTimes[seq(1,length(allTimes),by=2)]
y <- merge(xts(seq_along(sampTimes), sampTimes), allTimes)
y <- na.locf(y)
y <- to.period(y, 'seconds', 10)
index(y) <- index(to.period(x, 'seconds', 10))
}