Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Output in examples #456
#' dt_utc <- ymd_hms("2010-08-03 00:50:50") #' dt_europe <- ymd_hms("2010-08-03 00:50:50", tz="Europe/London") #' c(as_date(dt_utc), as.Date(dt_utc)) #' ##  "2010-08-03" "2010-08-03"
This seems like an easy way to end up with code and results out of sync.
That's a custom for lubridate. I don't think it was me who started it, I think I just followed on the style. While it's a bit tedious to maintain it's surely convenient for the user. Deleting those comments would be wasteful IMO, especially now when the API is stable.
When viewed online or in a pdf printout this inline output is definitely useful. Many people are still printing doc pages (I see it all the time with my students).
I personally wouldn't care as I can execute and edit code directly form the help page in ESS. In other editors you cannot do that and people have to peruse the help page or have to run
In any case, if you feel strongly about it then let's remove them. It would save me some time in the future. Manually pasting output is not the most pleasant activity.