For the simple task of summing up all rows in a sparse matrix in R, Matrix::rowSums() does a great job:
Matrix::rowSums()
library(Matrix) m <- rsparsematrix