SparseArray package not available in Julia 1.1.0?

Try use julia 0.7 and use speye, it will tell you how to do it because julia 0.7 has deprecation warnings. Julia 0.7 is good when upgrading code. It is better to use julia 0.7 first because it will tell you what the replacement is for upgrading code.