R language MSwM package documentation