library(system)
This package contains utilities for invoking services from the operating system that does not fit elsewhere.
Exported predicates:
now(
-When)
datime(
-Datime)
datime/6
record of the form
datime(
Year,
Month,
Day,
Hour,
Min,
Sec)
.
All fields are integers.
datime(
+When,
-Datime)
datime(
-When,
+Datime)
now/1
, to a
datime/6
record. Can be used in both directions.
sleep(
+Seconds)
environ(
?Var,
?Value)
The same as environ(
Var,
Value, merged)
.
environ(
?Var,
?Value,
+Source)
Source is one of properties
, in which case only system properties are enumerated;
environment
, in which case only environment variables are enumerated; and
merged
, in which case both environment variables and system
properties are enumerated. When Source is merged
and
an environment variable and a system property have equivalent names,
the value of the system property is returned.
On UNIX-like platforms, two names are equivalent if and only if they are identical. On Windows-like platforms, a case insensitive comparison is used.
See System Properties and Environment Variables, for more information.