[R] segmentation fault with chron.times()

Fabrizio Pollastri pollastri at iriti.cnr.it
Tue Mar 20 10:58:46 CET 2001


I am running a simple R program, its skeleton is enclosed below.
The program reads about 80 files with about 5000 lines with coloumns of
data. After an unpredictable and variable number of loops for run to
run, it exits with segmentation fault or alternatively with the error
 Error in names<-.default(*tmp*, value = fnames) :
 Unimplemented feature in duplicate
Removing the call to "times" any error disappears.
My configuration is Linux 2.0.17 with r-base 1.2.2-2.
Since, I am new to R, any help is welcome. Thank you in advance.

Best regards,
F. Pollastri.

R program
------------------------------------------------------------
library(chron)

filenames <- list.files(path=".",
                pattern="^data\\..*\\.txt",full.names=TRUE)
for (filename in filenames)
{
  mydata <- read.table(filename,sep=",",skip=3,as.is=TRUE)
  timesec <- times(mydata$V1)
}
------------------------------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list