Multichannel atomic scattering calculations using Lagrange mesh bases and the R-matrix method