Using Sys functions
Getting list of all environmental variables with their value Sys,getenv() Getting value of specific environmental variable Sys.getenv("envname") Getting current machine information Sys.info() Getting current system date and time Sys.time() Getting current system date Sys.Date()