> ## Print 'dput' output to console > dput(y) structure(list(a = 1, b = structure(1L, .Label = "a", class = "factor")), .Names = c("a", "b"), row.names = c(NA, -1L), class = "data.frame") > ## Send 'dput' output to a file > dput(y, file = "y.R") > ## Read in 'dput' output from a file > new.y <- dget("y.R") > new.y a b 1 1 a