Use buildmer to fit generalized-least-squares models using gls from nlme
buildmer
gls
nlme
Useful links