fixed spelling errors in build.R and added error = FALSE to options