[Rd] Structure not deparsed correctly when printing calls

Hadley Wickham h.wickham at gmail.com
Wed Mar 20 21:12:52 CET 2013


z <- substitute(f(x), list(x = data.frame(y = 1)))

z
# f(list(y = 1))

str(z)
# language f(structure(list(y = 1), .Names = "y", row.names = c(NA,
-1L), class = "data.frame"))

dput(z)
# f(structure(list(y = 1), .Names = "y", row.names = c(NA, -1L), class
= "data.frame"))

Hadley

-- 
Chief Scientist, RStudio
http://had.co.nz/



More information about the R-devel mailing list