CRAN Package Check Results for Package NHMSAR

Last updated on 2022-01-26 20:49:09 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.17 11.69 90.29 101.98 ERROR
r-devel-linux-x86_64-debian-gcc 1.17 9.26 66.74 76.00 ERROR
r-devel-linux-x86_64-fedora-clang 1.17 124.28 ERROR
r-devel-linux-x86_64-fedora-gcc 1.17 112.93 ERROR
r-devel-windows-x86_64-new-UL 1.17 61.00 102.00 163.00 ERROR
r-devel-windows-x86_64-new-TK 1.17 ERROR
r-patched-linux-x86_64 1.17 12.60 97.31 109.91 OK
r-release-linux-x86_64 1.17 12.38 97.02 109.40 OK
r-release-macos-arm64 1.17 OK
r-release-macos-x86_64 1.17 OK
r-release-windows-ix86+x86_64 1.17 19.00 106.00 125.00 OK
r-oldrel-macos-x86_64 1.17 OK
r-oldrel-windows-ix86+x86_64 1.17 20.00 106.00 126.00 OK

Check Details

Version: 1.17
Check: examples
Result: ERROR
    Running examples in 'NHMSAR-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: regimes.plot.MSAR
    > ### Title: Plot MSAR time series with regimes
    > ### Aliases: regimes.plot.MSAR
    > ### Keywords: plot MSAR latent regimes
    >
    > ### ** Examples
    >
    > data(lynx)
    > T = length(lynx)
    > data = array(log(lynx),c(T,1,1))
    > theta.init = init.theta.MSAR(data,M=2,order=2,label="HH")
    > mod.lynx = fit.MSAR(data,theta.init)
    > regimes.plot.MSAR(mod.lynx,data,ylab="Captures number")
     [1] NA NA 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2
     [26] 2 1 1 1 1 1 2 2 2 2 2 1 1 1 1 2 2 2 2 2 2 2 2 2 2
     [51] 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2
     [76] 2 2 2 2 2 2 2 1 1 1 2 2 2 2 2 2 2 1 1 1 1 1 1 1 2
    [101] 2 2 2 2 2 2 1 1 2 2 2 2 1 1 1 1
    >
    > theta.init = init.theta.MSAR(data,M=2,order=2,label="NH",nh.transitions="logistic")
    > attributes(theta.init)
    $NbComp
    [1] 1
    
    $NbRegimes
    [1] 2
    
    $order
    [1] 2
    
    $label
    [1] "NH"
    
    $nh.transitions
    function (covar, par.trans, transmat)
    {
     eps = 1e-10
     T <- dim(covar)[1]
     nc <- dim(covar)[3]
     covar = matrix(covar, T, nc)
     M = dim(transmat)[1]
     f <- array(0, c(M, M, T))
     for (m in 1:M) {
     f[m, m, ] = eps + (1 - 2 * eps)/(1 + exp(par.trans[m,
     1] + par.trans[m, 2:(nc + 1)] %*% t(covar)))
     }
     f[1, 2, ] = 1 - f[1, 1, ]
     f[2, 1, ] = 1 - f[2, 2, ]
     return(f)
    }
    <bytecode: 0x2f97100>
    <environment: 0x14603f8>
    
    $n_par
    [1] 12
    
    $emis.linear
    [1] FALSE
    
    $names
    [1] "A" "A0" "sigma" "prior" "transmat" "par.trans"
    
    $class
    [1] "MSAR"
    
    > theta.init$A0 = mod.lynx$theta$A0
    > theta.init$A = mod.lynx$theta$A
    > theta.init$sigma = mod.lynx$theta$sigma
    > theta.init$prior = mod.lynx$theta$prior
    > theta.init$transmat = mod.lynx$theta$transmat
    > theta.init$par.trans = matrix(c(1,-1,-.2,.2),2,2)
    > Y = array(data[2:T,,],c(T-1,1,1))
    > Z = array(data[2:T,,],c(T-1,1,1))
    > mod.lynx = fit.MSAR(Y,theta.init,verbose=TRUE,MaxIter=20,covar.trans=Z)
    [1] iteration 1 loglik = -81.7078576816889
    Error in w[, 1] : incorrect number of dimensions
    Calls: fit.MSAR -> Mstep.nh.MSAR -> ucminf -> fn
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.17
Check: examples
Result: ERROR
    Running examples in ‘NHMSAR-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: regimes.plot.MSAR
    > ### Title: Plot MSAR time series with regimes
    > ### Aliases: regimes.plot.MSAR
    > ### Keywords: plot MSAR latent regimes
    >
    > ### ** Examples
    >
    > data(lynx)
    > T = length(lynx)
    > data = array(log(lynx),c(T,1,1))
    > theta.init = init.theta.MSAR(data,M=2,order=2,label="HH")
    > mod.lynx = fit.MSAR(data,theta.init)
    > regimes.plot.MSAR(mod.lynx,data,ylab="Captures number")
     [1] NA NA 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2
     [26] 2 1 1 1 1 1 2 2 2 2 2 1 1 1 1 2 2 2 2 2 2 2 2 2 2
     [51] 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2
     [76] 2 2 2 2 2 2 2 1 1 1 2 2 2 2 2 2 2 1 1 1 1 1 1 1 2
    [101] 2 2 2 2 2 2 1 1 2 2 2 2 1 1 1 1
    >
    > theta.init = init.theta.MSAR(data,M=2,order=2,label="NH",nh.transitions="logistic")
    > attributes(theta.init)
    $NbComp
    [1] 1
    
    $NbRegimes
    [1] 2
    
    $order
    [1] 2
    
    $label
    [1] "NH"
    
    $nh.transitions
    function (covar, par.trans, transmat)
    {
     eps = 1e-10
     T <- dim(covar)[1]
     nc <- dim(covar)[3]
     covar = matrix(covar, T, nc)
     M = dim(transmat)[1]
     f <- array(0, c(M, M, T))
     for (m in 1:M) {
     f[m, m, ] = eps + (1 - 2 * eps)/(1 + exp(par.trans[m,
     1] + par.trans[m, 2:(nc + 1)] %*% t(covar)))
     }
     f[1, 2, ] = 1 - f[1, 1, ]
     f[2, 1, ] = 1 - f[2, 2, ]
     return(f)
    }
    <bytecode: 0x55c95ac1ae68>
    <environment: 0x55c9592914f0>
    
    $n_par
    [1] 12
    
    $emis.linear
    [1] FALSE
    
    $names
    [1] "A" "A0" "sigma" "prior" "transmat" "par.trans"
    
    $class
    [1] "MSAR"
    
    > theta.init$A0 = mod.lynx$theta$A0
    > theta.init$A = mod.lynx$theta$A
    > theta.init$sigma = mod.lynx$theta$sigma
    > theta.init$prior = mod.lynx$theta$prior
    > theta.init$transmat = mod.lynx$theta$transmat
    > theta.init$par.trans = matrix(c(1,-1,-.2,.2),2,2)
    > Y = array(data[2:T,,],c(T-1,1,1))
    > Z = array(data[2:T,,],c(T-1,1,1))
    > mod.lynx = fit.MSAR(Y,theta.init,verbose=TRUE,MaxIter=20,covar.trans=Z)
    [1] iteration 1 loglik = -81.7078576817072
    Error in w[, 1] : incorrect number of dimensions
    Calls: fit.MSAR -> Mstep.nh.MSAR -> ucminf -> fn
    Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.17
Check: examples
Result: ERROR
    Running examples in ‘NHMSAR-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: regimes.plot.MSAR
    > ### Title: Plot MSAR time series with regimes
    > ### Aliases: regimes.plot.MSAR
    > ### Keywords: plot MSAR latent regimes
    >
    > ### ** Examples
    >
    > data(lynx)
    > T = length(lynx)
    > data = array(log(lynx),c(T,1,1))
    > theta.init = init.theta.MSAR(data,M=2,order=2,label="HH")
    > mod.lynx = fit.MSAR(data,theta.init)
    > regimes.plot.MSAR(mod.lynx,data,ylab="Captures number")
     [1] NA NA 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2
     [26] 2 1 1 1 1 1 2 2 2 2 2 1 1 1 1 2 2 2 2 2 2 2 2 2 2
     [51] 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2
     [76] 2 2 2 2 2 2 2 1 1 1 2 2 2 2 2 2 2 1 1 1 1 1 1 1 2
    [101] 2 2 2 2 2 2 1 1 2 2 2 2 1 1 1 1
    >
    > theta.init = init.theta.MSAR(data,M=2,order=2,label="NH",nh.transitions="logistic")
    > attributes(theta.init)
    $NbComp
    [1] 1
    
    $NbRegimes
    [1] 2
    
    $order
    [1] 2
    
    $label
    [1] "NH"
    
    $nh.transitions
    function (covar, par.trans, transmat)
    {
     eps = 1e-10
     T <- dim(covar)[1]
     nc <- dim(covar)[3]
     covar = matrix(covar, T, nc)
     M = dim(transmat)[1]
     f <- array(0, c(M, M, T))
     for (m in 1:M) {
     f[m, m, ] = eps + (1 - 2 * eps)/(1 + exp(par.trans[m,
     1] + par.trans[m, 2:(nc + 1)] %*% t(covar)))
     }
     f[1, 2, ] = 1 - f[1, 1, ]
     f[2, 1, ] = 1 - f[2, 2, ]
     return(f)
    }
    <bytecode: 0x38da8c8>
    <environment: 0x3b223f8>
    
    $n_par
    [1] 12
    
    $emis.linear
    [1] FALSE
    
    $names
    [1] "A" "A0" "sigma" "prior" "transmat" "par.trans"
    
    $class
    [1] "MSAR"
    
    > theta.init$A0 = mod.lynx$theta$A0
    > theta.init$A = mod.lynx$theta$A
    > theta.init$sigma = mod.lynx$theta$sigma
    > theta.init$prior = mod.lynx$theta$prior
    > theta.init$transmat = mod.lynx$theta$transmat
    > theta.init$par.trans = matrix(c(1,-1,-.2,.2),2,2)
    > Y = array(data[2:T,,],c(T-1,1,1))
    > Z = array(data[2:T,,],c(T-1,1,1))
    > mod.lynx = fit.MSAR(Y,theta.init,verbose=TRUE,MaxIter=20,covar.trans=Z)
    [1] iteration 1 loglik = -81.7078576816889
    Error in w[, 1] : incorrect number of dimensions
    Calls: fit.MSAR -> Mstep.nh.MSAR -> ucminf -> fn
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.17
Check: examples
Result: ERROR
    Running examples in ‘NHMSAR-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: regimes.plot.MSAR
    > ### Title: Plot MSAR time series with regimes
    > ### Aliases: regimes.plot.MSAR
    > ### Keywords: plot MSAR latent regimes
    >
    > ### ** Examples
    >
    > data(lynx)
    > T = length(lynx)
    > data = array(log(lynx),c(T,1,1))
    > theta.init = init.theta.MSAR(data,M=2,order=2,label="HH")
    > mod.lynx = fit.MSAR(data,theta.init)
    > regimes.plot.MSAR(mod.lynx,data,ylab="Captures number")
     [1] NA NA 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2
     [26] 2 1 1 1 1 1 2 2 2 2 2 1 1 1 1 2 2 2 2 2 2 2 2 2 2
     [51] 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2
     [76] 2 2 2 2 2 2 2 1 1 1 2 2 2 2 2 2 2 1 1 1 1 1 1 1 2
    [101] 2 2 2 2 2 2 1 1 2 2 2 2 1 1 1 1
    >
    > theta.init = init.theta.MSAR(data,M=2,order=2,label="NH",nh.transitions="logistic")
    > attributes(theta.init)
    $NbComp
    [1] 1
    
    $NbRegimes
    [1] 2
    
    $order
    [1] 2
    
    $label
    [1] "NH"
    
    $nh.transitions
    function (covar, par.trans, transmat)
    {
     eps = 1e-10
     T <- dim(covar)[1]
     nc <- dim(covar)[3]
     covar = matrix(covar, T, nc)
     M = dim(transmat)[1]
     f <- array(0, c(M, M, T))
     for (m in 1:M) {
     f[m, m, ] = eps + (1 - 2 * eps)/(1 + exp(par.trans[m,
     1] + par.trans[m, 2:(nc + 1)] %*% t(covar)))
     }
     f[1, 2, ] = 1 - f[1, 1, ]
     f[2, 1, ] = 1 - f[2, 2, ]
     return(f)
    }
    <bytecode: 0x4674240>
    <environment: 0x775a060>
    
    $n_par
    [1] 12
    
    $emis.linear
    [1] FALSE
    
    $names
    [1] "A" "A0" "sigma" "prior" "transmat" "par.trans"
    
    $class
    [1] "MSAR"
    
    > theta.init$A0 = mod.lynx$theta$A0
    > theta.init$A = mod.lynx$theta$A
    > theta.init$sigma = mod.lynx$theta$sigma
    > theta.init$prior = mod.lynx$theta$prior
    > theta.init$transmat = mod.lynx$theta$transmat
    > theta.init$par.trans = matrix(c(1,-1,-.2,.2),2,2)
    > Y = array(data[2:T,,],c(T-1,1,1))
    > Z = array(data[2:T,,],c(T-1,1,1))
    > mod.lynx = fit.MSAR(Y,theta.init,verbose=TRUE,MaxIter=20,covar.trans=Z)
    [1] iteration 1 loglik = -81.7078576816889
    Error in w[, 1] : incorrect number of dimensions
    Calls: fit.MSAR -> Mstep.nh.MSAR -> ucminf -> fn
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 1.17
Check: examples
Result: ERROR
    Running examples in 'NHMSAR-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: regimes.plot.MSAR
    > ### Title: Plot MSAR time series with regimes
    > ### Aliases: regimes.plot.MSAR
    > ### Keywords: plot MSAR latent regimes
    >
    > ### ** Examples
    >
    > data(lynx)
    > T = length(lynx)
    > data = array(log(lynx),c(T,1,1))
    > theta.init = init.theta.MSAR(data,M=2,order=2,label="HH")
    > mod.lynx = fit.MSAR(data,theta.init)
    > regimes.plot.MSAR(mod.lynx,data,ylab="Captures number")
     [1] NA NA 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2
     [26] 2 1 1 1 1 1 2 2 2 2 2 1 1 1 1 2 2 2 2 2 2 2 2 2 2
     [51] 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2
     [76] 2 2 2 2 2 2 2 1 1 1 2 2 2 2 2 2 2 1 1 1 1 1 1 1 2
    [101] 2 2 2 2 2 2 1 1 2 2 2 2 1 1 1 1
    >
    > theta.init = init.theta.MSAR(data,M=2,order=2,label="NH",nh.transitions="logistic")
    > attributes(theta.init)
    $NbComp
    [1] 1
    
    $NbRegimes
    [1] 2
    
    $order
    [1] 2
    
    $label
    [1] "NH"
    
    $nh.transitions
    function (covar, par.trans, transmat)
    {
     eps = 1e-10
     T <- dim(covar)[1]
     nc <- dim(covar)[3]
     covar = matrix(covar, T, nc)
     M = dim(transmat)[1]
     f <- array(0, c(M, M, T))
     for (m in 1:M) {
     f[m, m, ] = eps + (1 - 2 * eps)/(1 + exp(par.trans[m,
     1] + par.trans[m, 2:(nc + 1)] %*% t(covar)))
     }
     f[1, 2, ] = 1 - f[1, 1, ]
     f[2, 1, ] = 1 - f[2, 2, ]
     return(f)
    }
    <bytecode: 0x000000001568f0c8>
    <environment: 0x0000000015742d38>
    
    $n_par
    [1] 12
    
    $emis.linear
    [1] FALSE
    
    $names
    [1] "A" "A0" "sigma" "prior" "transmat" "par.trans"
    
    $class
    [1] "MSAR"
    
    > theta.init$A0 = mod.lynx$theta$A0
    > theta.init$A = mod.lynx$theta$A
    > theta.init$sigma = mod.lynx$theta$sigma
    > theta.init$prior = mod.lynx$theta$prior
    > theta.init$transmat = mod.lynx$theta$transmat
    > theta.init$par.trans = matrix(c(1,-1,-.2,.2),2,2)
    > Y = array(data[2:T,,],c(T-1,1,1))
    > Z = array(data[2:T,,],c(T-1,1,1))
    > mod.lynx = fit.MSAR(Y,theta.init,verbose=TRUE,MaxIter=20,covar.trans=Z)
    [1] iteration 1 loglik = -81.7078576817072
    Error in w[, 1] : incorrect number of dimensions
    Calls: fit.MSAR -> Mstep.nh.MSAR -> ucminf -> fn
    Execution halted
Flavor: r-devel-windows-x86_64-new-UL

Version: 1.17
Check: examples
Result: ERROR
    Running examples in 'NHMSAR-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: regimes.plot.MSAR
    > ### Title: Plot MSAR time series with regimes
    > ### Aliases: regimes.plot.MSAR
    > ### Keywords: plot MSAR latent regimes
    >
    > ### ** Examples
    >
    > data(lynx)
    > T = length(lynx)
    > data = array(log(lynx),c(T,1,1))
    > theta.init = init.theta.MSAR(data,M=2,order=2,label="HH")
    > mod.lynx = fit.MSAR(data,theta.init)
    > regimes.plot.MSAR(mod.lynx,data,ylab="Captures number")
     [1] NA NA 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2
     [26] 2 1 1 1 1 1 2 2 2 2 2 1 1 1 1 2 2 2 2 2 2 2 2 2 2
     [51] 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2
     [76] 2 2 2 2 2 2 2 1 1 1 2 2 2 2 2 2 2 1 1 1 1 1 1 1 2
    [101] 2 2 2 2 2 2 1 1 2 2 2 2 1 1 1 1
    >
    > theta.init = init.theta.MSAR(data,M=2,order=2,label="NH",nh.transitions="logistic")
    > attributes(theta.init)
    $NbComp
    [1] 1
    
    $NbRegimes
    [1] 2
    
    $order
    [1] 2
    
    $label
    [1] "NH"
    
    $nh.transitions
    function (covar, par.trans, transmat)
    {
     eps = 1e-10
     T <- dim(covar)[1]
     nc <- dim(covar)[3]
     covar = matrix(covar, T, nc)
     M = dim(transmat)[1]
     f <- array(0, c(M, M, T))
     for (m in 1:M) {
     f[m, m, ] = eps + (1 - 2 * eps)/(1 + exp(par.trans[m,
     1] + par.trans[m, 2:(nc + 1)] %*% t(covar)))
     }
     f[1, 2, ] = 1 - f[1, 1, ]
     f[2, 1, ] = 1 - f[2, 2, ]
     return(f)
    }
    <bytecode: 0x000001468d3364e8>
    <environment: 0x000001468b38dab8>
    
    $n_par
    [1] 12
    
    $emis.linear
    [1] FALSE
    
    $names
    [1] "A" "A0" "sigma" "prior" "transmat" "par.trans"
    
    $class
    [1] "MSAR"
    
    > theta.init$A0 = mod.lynx$theta$A0
    > theta.init$A = mod.lynx$theta$A
    > theta.init$sigma = mod.lynx$theta$sigma
    > theta.init$prior = mod.lynx$theta$prior
    > theta.init$transmat = mod.lynx$theta$transmat
    > theta.init$par.trans = matrix(c(1,-1,-.2,.2),2,2)
    > Y = array(data[2:T,,],c(T-1,1,1))
    > Z = array(data[2:T,,],c(T-1,1,1))
    > mod.lynx = fit.MSAR(Y,theta.init,verbose=TRUE,MaxIter=20,covar.trans=Z)
    [1] iteration 1 loglik = -81.7078576817072
    Error in w[, 1] : incorrect number of dimensions
    Calls: fit.MSAR -> Mstep.nh.MSAR -> ucminf -> fn
    Execution halted
Flavor: r-devel-windows-x86_64-new-TK