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] "runnervmlun5p"
#> 
#> $os_info
#> # A tibble: 5 × 2
#>   field   value                                      
#>   <chr>   <chr>                                      
#> 1 sysname Linux                                      
#> 2 release 6.17.0-1022-azure                          
#> 3 version #22-Ubuntu SMP Mon Jul 27 17:24:03 UTC 2026
#> 4 machine x86_64                                     
#> 5 os_type unix                                       
#> 
#> $cpu_info
#> # A tibble: 40 × 2
#>    field      value                          
#>    <chr>      <chr>                          
#>  1 hostname   runnervmlun5p                  
#>  2 processor  0                              
#>  3 vendor_id  vendor_AuthenticAMD            
#>  4 cpu_family 25                             
#>  5 model      17                             
#>  6 model_name AMD EPYC 9V74 80-Core Processor
#>  7 stepping   1                              
#>  8 microcode  0xffffffff                     
#>  9 cpu_mhz    3693.837                       
#> 10 cache_size 1024 KB                        
#> # ℹ 30 more rows
#> 
#> $disk_free
#> # A tibble: 8 × 6
#>   filesystem      blocks_1024     used available capacity mounted_on            
#>   <chr>                 <dbl>    <dbl>     <dbl>    <dbl> <chr>                 
#> 1 /dev/root         151263856 62803448  88444024     0.42 /                     
#> 2 tmpfs               8186724       84   8186640     0.01 /dev/shm              
#> 3 tmpfs               3274692     1020   3273672     0.01 /run                  
#> 4 tmpfs                  5120        0      5120     0    /run/lock             
#> 5 efivarfs             131072       32    131036     0.01 /sys/firmware/efi/efi…
#> 6 /dev/nvme0n1p16      901520    65012    773380     0.08 /boot                 
#> 7 /dev/nvme0n1p15      106832     6250    100582     0.06 /boot/efi             
#> 8 tmpfs               1637344       12   1637332     0.01 /run/user/1001        
#>