[Rd] Doc patch for Sys.time and system.time

Duncan Murdoch murdoch.duncan at gmail.com
Fri Dec 28 01:23:33 CET 2012


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
>



More information about the R-devel mailing list