RSessionAlive: How Long Has the RSession Been Running?

View source: R/Utils.R

RSessionAliveR Documentation

How Long Has the RSession Been Running?

Description

RSessionAlive() returns the time the R session has been running in hours. The function uses powershell in Windows and is thus restricted to run in windows only. RTempdirAlive() does the same for temporary directories, but runs on all systems.

Usage

RSessionAlive()
RTempdirAlive()

Value

time in hours

Author(s)

Markus Napflin <markus.naepfl@in>, Andri Signorell <andri@signorell.net>

See Also

Sys.getenv


AndriSignorell/DescTools documentation built on Nov. 11, 2024, 12:11 p.m.