machineId: Generate a one-line machine summary

Description Usage Details Value Warning Note See Also Examples

View source: R/machineId.R

Description

This function creates an informative machine summary that can be used to characterize a machine.

Usage

1

Details

The function gives the nodename, the username, the OS name, the OS release, the CPU model name and RAM (in gigabytes).

Value

Returns a string.

Warning

options(warn=-1) has been used inside the code; otherwise, it gives "NAs introduced by coercion".

Note

benchmarkme::get_ram() returns "NA B" for Windows 10. So, a windows specific workaround has been used in it viz. sum(as.numeric(system('wmic MemoryChip get Capacity',intern=TRUE)),na.rm=T)/1024^3 to get the RAM size in gigabytes.

See Also

Sys.info, get_ram, get_cpu, system

Examples

1
2
machid <- machineId()
machid

ArkaB-DS/nlsCompare documentation built on Jan. 1, 2022, 2 p.m.