CRAN Package Check Results for Package kza

Last updated on 2016-02-08 02:47:25.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-gcc 3.2.0 2.74 14.27 17.00 OK
r-devel-linux-x86_64-fedora-clang 3.2.0 29.64 OK
r-devel-linux-x86_64-fedora-gcc 3.2.0 30.36 OK
r-devel-osx-x86_64-clang 3.2.0 36.23 OK
r-devel-windows-ix86+x86_64 3.2.0 25.00 51.00 76.00 OK
r-patched-linux-x86_64 3.2.0 3.04 11.31 14.35 ERROR
r-patched-solaris-sparc 3.2.0 204.90 OK
r-patched-solaris-x86 3.2.0 44.00 OK
r-release-linux-x86_64 3.2.0 2.90 14.89 17.79 OK
r-release-osx-x86_64-mavericks 3.2.0 OK
r-release-windows-ix86+x86_64 3.2.0 18.00 56.00 74.00 OK
r-oldrel-windows-ix86+x86_64 3.2.0 22.00 70.00 92.00 OK

Memtest notes: clang-ASAN gcc-ASAN valgrind

Check Details

Version: 3.2.0
Check: examples
Result: ERROR
    Running examples in ‘kza-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: kzft
    > ### Title: Kolmogorov-Zurbenko Fourier Transform
    > ### Aliases: kzft coeff max_freq transfer_function
    >
    > ### ** Examples
    >
    > # example taken from Wei Yang's KZFT package
    > # coefficients of kzft(201,5)
    >
    > # function to calculate polnomial coefficients for kzft
    > ## Not run:
    > ##D a<-coeff(201,5);
    > ##D t<-seq(1:1001)-501;
    > ##D z<-cos(2*pi*0.025*t);
    > ##D plot(z*a,type="l",xlab="Time", ylab="Coefficient", main="Coefficients of the kzft");
    > ##D lines(a);
    > ##D lines(-1*a);
    > ## End(Not run)
    >
    > # example taken from Wei Yang's KZFT package
    > # transfer function of the kzft(201,5) at frequency 0.025
    > lamda<-seq(-0.1,0.1,by=0.001)
    > tf1<-transfer_function(201,1,lamda,0.025)
    > tf2<-transfer_function(201,5,lamda,0.025)
    > matplot(lamda,cbind(log(tf1),log(tf2)),type="l",ylim=c(-15,0),
    + ylab="Natural log transformation of the coefficients",
    + xlab="Frequency (cycles/time unit)",
    + main="Transfer function of kzft(201,5) at frequency 0.025")
    >
    > # example with missing values
    > set.seed(2)
    > period=101
    > f<-1/period
    > t<-1:2000
    > s<-1*sin(2*pi*f*t)
    > x<-s
    > noise<-3*rnorm(length(t))
    > x<-s+noise
    > m=101
    >
    > rand_idx <- sample(t,100,replace=FALSE)
    > x[rand_idx]<-NA
    > t[rand_idx]<-NA
    > x<-as.vector(na.omit(x))
    > t<-as.vector(na.omit(t))
    >
    > system.time(z1<-kzft(x, m=m, k=1, f=f, dim=1, index=t, alg="C"))
     user system elapsed
     0.012 0.000 0.014
    > system.time(z2<-kzft(x, m=m, k=2, f=f, dim=1, index=t, alg="C"))
    *** Error in `/home/hornik/tmp/R.check/r-patched-gcc/Work/build/bin/exec/R': malloc(): memory corruption: 0x000000000379c170 ***
    Aborted
Flavor: r-patched-linux-x86_64