Lists System Information for the Current Machine

system_info()

Value

A named list with elements hostname (a character string), os_info, cpu_info, and disk_free (data frames/tibbles).

Details

This function reads/queries base::Sys.info(), disk_free(), and cpu_info() on the current machine.

Examples

info <- system_info()
print(info)
#> $hostname
#> [1] "fv-az1536-86"
#> 
#> $os_info
#> # A tibble: 5 × 2
#>   field   value                                              
#>   <chr>   <chr>                                              
#> 1 sysname Linux                                              
#> 2 release 6.5.0-1025-azure                                   
#> 3 version #26~22.04.1-Ubuntu SMP Thu Jul 11 22:33:04 UTC 2024
#> 4 machine x86_64                                             
#> 5 os_type unix                                               
#> 
#> $cpu_info
#> # A tibble: 40 × 2
#>    field      value                          
#>    <chr>      <chr>                          
#>  1 hostname   fv-az1536-86                   
#>  2 processor  0                              
#>  3 vendor_id  vendor_AuthenticAMD            
#>  4 cpu_family 25                             
#>  5 model      1                              
#>  6 model_name AMD EPYC 7763 64-Core Processor
#>  7 stepping   1                              
#>  8 microcode  0xffffffff                     
#>  9 cpu_mhz    3242.525                       
#> 10 cache_size 512 KB                         
#> # ℹ 30 more rows
#> 
#> $disk_free
#> # A tibble: 7 × 6
#>   filesystem blocks_1024     used available capacity mounted_on    
#>   <chr>            <dbl>    <dbl>     <dbl>    <dbl> <chr>         
#> 1 /dev/root     76026616 56324720  19685512     0.75 /             
#> 2 tmpfs          8182296      172   8182124     0.01 /dev/shm      
#> 3 tmpfs          3272920     1116   3271804     0.01 /run          
#> 4 tmpfs             5120        0      5120     0    /run/lock     
#> 5 /dev/sda15      106832     6190    100642     0.06 /boot/efi     
#> 6 /dev/sdb1     76829444  4194336  68686668     0.06 /mnt          
#> 7 tmpfs          1636456       12   1636444     0.01 /run/user/1001
#>