Here?s a patch that adds ?seealso? entries to Sys.time and system.time docs, to help people who forget what the distinction is between them. Patch was made against https://svn.r-project.org/R/trunk at 61454 . -Ken
Doc patch for Sys.time and system.time
3 messages · Ken Williams, Duncan Murdoch
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20121227/18ed23ac/attachment.pl>
These are now in R-devel. Thanks! Duncan Murdoch
On 12-12-27 1:34 PM, Ken Williams wrote:
Duncan noticed that either the sending server (Gmail - shouldn't be the case) or receiving server stripped out the attachment. Here it is again, inline. -Ken ===========================
From 99766dd8f16804ecddc73f6169be3e42b916b8fa Mon Sep 17 00:00:00 2001
From: Ken Williams <Ken.Williams at WindLogics.com>
Date: Thu, 27 Dec 2012 09:58:21 -0600
Subject: [PATCH] Add system.time link to Sys.time documentation, and vice
versa.
diff --git a/src/library/base/man/Sys.time.Rd
b/src/library/base/man/Sys.time.Rd
index d34571b..f0b0c50 100644
--- a/src/library/base/man/Sys.time.Rd
+++ b/src/library/base/man/Sys.time.Rd
@@ -41,6 +41,8 @@ Sys.Date()
string.
\code{\link{Sys.timezone}}.
+
+ \code{\link{system.time}} for measuring elapsed/CPU time of expressions.
}
\examples{\donttest{
Sys.time()
diff --git a/src/library/base/man/system.time.Rd
b/src/library/base/man/system.time.Rd
index 5cd79b7..ad21267 100644
--- a/src/library/base/man/system.time.Rd
+++ b/src/library/base/man/system.time.Rd
@@ -38,6 +38,8 @@ unix.time(expr, gcFirst = TRUE)
}
\seealso{
\code{\link{proc.time}}, \code{\link{time}} which is for time series.
+
+ \code{\link{Sys.time}} to get the current date & time.
}
\examples{
require(stats)
______________________________________________ R-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel