'LazyData' is specified without a 'data' directory
Running examples in 'factorcpt-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: factor.seg.alg
> ### Title: Simultaneous multiple change-point and factor analysis for
> ###   high-dimensional time series
> ### Aliases: factor.seg.alg
> 
> ### ** Examples
> 
> n <- 50; T <- 200
> e <- matrix(rnorm(n*T), nrow=n) # idiosyncratic components
> r <- 3 # factor number
> Lam <- matrix(rnorm(n*r, 1, 1), nrow=n) # loadings
> f <- matrix(rnorm(r*T), nrow=r) # factors
> chi <- e*0 # common component
> chp <- T/2 # change-point
> chi[, 1:chp] <- Lam%*%f[, 1:chp]
> Lam <- Lam + matrix(rnorm(n*r, 0, sqrt(2)), nrow=n) # new loadings
> chi[, (chp+1):T] <- Lam%*%f[, (chp+1):T]
> x <- chi + sqrt(r)*e
> 
> fsa <- factor.seg.alg(x, idio.diag=TRUE)
Error in matrix(c(tree[[l]], matrix(0, 6, 1)), 6, ncc) : 
  data length differs from size of matrix: [12 != 6 x 1]
Calls: factor.seg.alg -> common.seg -> matrix
Execution halted
'LazyData' is specified without a 'data' directory
Running examples in ‘factorcpt-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: factor.seg.alg
> ### Title: Simultaneous multiple change-point and factor analysis for
> ###   high-dimensional time series
> ### Aliases: factor.seg.alg
> 
> ### ** Examples
> 
> n <- 50; T <- 200
> e <- matrix(rnorm(n*T), nrow=n) # idiosyncratic components
> r <- 3 # factor number
> Lam <- matrix(rnorm(n*r, 1, 1), nrow=n) # loadings
> f <- matrix(rnorm(r*T), nrow=r) # factors
> chi <- e*0 # common component
> chp <- T/2 # change-point
> chi[, 1:chp] <- Lam%*%f[, 1:chp]
> Lam <- Lam + matrix(rnorm(n*r, 0, sqrt(2)), nrow=n) # new loadings
> chi[, (chp+1):T] <- Lam%*%f[, (chp+1):T]
> x <- chi + sqrt(r)*e
> 
> fsa <- factor.seg.alg(x, idio.diag=TRUE)
Error in matrix(c(tree[[l]], matrix(0, 6, 1)), 6, ncc) : 
  data length differs from size of matrix: [12 != 6 x 1]
Calls: factor.seg.alg -> common.seg -> matrix
Execution halted
'LazyData' is specified without a 'data' directory
File ‘factorcpt/libs/factorcpt.so’:
  Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’

It is good practice to register native routines and to disable symbol
search.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
Running examples in ‘factorcpt-Ex.R’ failed
The error most likely occurred in:

> ### Name: factor.seg.alg
> ### Title: Simultaneous multiple change-point and factor analysis for
> ###   high-dimensional time series
> ### Aliases: factor.seg.alg
> 
> ### ** Examples
> 
> n <- 50; T <- 200
> e <- matrix(rnorm(n*T), nrow=n) # idiosyncratic components
> r <- 3 # factor number
> Lam <- matrix(rnorm(n*r, 1, 1), nrow=n) # loadings
> f <- matrix(rnorm(r*T), nrow=r) # factors
> chi <- e*0 # common component
> chp <- T/2 # change-point
> chi[, 1:chp] <- Lam%*%f[, 1:chp]
> Lam <- Lam + matrix(rnorm(n*r, 0, sqrt(2)), nrow=n) # new loadings
> chi[, (chp+1):T] <- Lam%*%f[, (chp+1):T]
> x <- chi + sqrt(r)*e
> 
> fsa <- factor.seg.alg(x, idio.diag=TRUE)
Error in matrix(c(tree[[l]], matrix(0, 6, 1)), 6, ncc) : 
  data length differs from size of matrix: [12 != 6 x 1]
Calls: factor.seg.alg -> common.seg -> matrix
Execution halted
'LazyData' is specified without a 'data' directory
File ‘factorcpt/libs/factorcpt.so’:
  Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’

It is good practice to register native routines and to disable symbol
search.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
Running examples in ‘factorcpt-Ex.R’ failed
The error most likely occurred in:

> ### Name: factor.seg.alg
> ### Title: Simultaneous multiple change-point and factor analysis for
> ###   high-dimensional time series
> ### Aliases: factor.seg.alg
> 
> ### ** Examples
> 
> n <- 50; T <- 200
> e <- matrix(rnorm(n*T), nrow=n) # idiosyncratic components
> r <- 3 # factor number
> Lam <- matrix(rnorm(n*r, 1, 1), nrow=n) # loadings
> f <- matrix(rnorm(r*T), nrow=r) # factors
> chi <- e*0 # common component
> chp <- T/2 # change-point
> chi[, 1:chp] <- Lam%*%f[, 1:chp]
> Lam <- Lam + matrix(rnorm(n*r, 0, sqrt(2)), nrow=n) # new loadings
> chi[, (chp+1):T] <- Lam%*%f[, (chp+1):T]
> x <- chi + sqrt(r)*e
> 
> fsa <- factor.seg.alg(x, idio.diag=TRUE)
Error in matrix(c(tree[[l]], matrix(0, 6, 1)), 6, ncc) : 
  data length differs from size of matrix: [12 != 6 x 1]
Calls: factor.seg.alg -> common.seg -> matrix
Execution halted
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory