This is a resubmission of an archived package addressing this problem: "Apparently your package no longer works correctly when class(matrix(...)) gives a vector of length two and conditions of length greater than one in 'if' or 'while' give an error: please fix as necessary." The package was removed from CRAN but now has been fixed.