## See http://stackoverflow.com/questions/15816532/ ## C crash in R-2.15.3, fixed in R-3.0.* x <- structure(4:6, .Label = LETTERS[1:3], class="factor") write.table(x, tempfile())