Thanks for replaying. It is the first time for me to use reprex and this was my example:
library(algstat)
#> Warning: package 'algstat' was built under R version 3.5.3
#> Loading required package: mpoly
#> Warning: package 'mpoly' was built under R version 3.5.3
#> whereis not found. Try setting the paths with setM2Path(), setBertiniPath(), setLattePath(), and setMarkovPath().
library(mpoly)
A <- c(rep(1,8),rep(-1,8))
B <- rep(c(1,1,1,1,-1,-1,-1,-1),2)
C <- rep(c(1,1,-1,-1),4)
D <- rep(c(1,-1),8)
E <- c(1,-1,-1,1,1,-1,-1,1,-1,1,1,-1,-1,1,1,-1)
f <- c(1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,1,1,-1)
M <- cbind(A,B,C,D,E,f)
M <- cbind(rep(1,16),M)
M <- as.matrix(M)
M <- matrix(M , byrow = FALSE, ncol=8)
markov(M)
#> Warning in file(con, "r"): cannot open file 'markovCode.mat.mar': No such
#> file or directory
#> Error in file(con, "r"): cannot open the connection