create build.SDMs.r