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] "runnervm0hi8g"
#> 
#> $os_info
#> # A tibble: 5 × 2
#>   field   value                                              
#>   <chr>   <chr>                                              
#> 1 sysname Linux                                              
#> 2 release 7.0.0-1020-azure                                   
#> 3 version #21-Ubuntu SMP PREEMPT Tue Oct 27 22:34:38 UTC 2026
#> 4 machine x86_64                                             
#> 5 os_type unix                                               
#> 
#> $cpu_info
#> # A tibble: 41 × 2
#>    field      value                          
#>    <chr>      <chr>                          
#>  1 hostname   runnervm0hi8g                  
#>  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    3249.455                       
#> 10 cache_size 512 KB                         
#> # ℹ 31 more rows
#> 
#> $disk_free
#> # A tibble: 12 × 6
#>    filesystem blocks_1024     used available capacity mounted_on                
#>    <chr>            <dbl>    <dbl>     <dbl>    <dbl> <chr>                     
#>  1 /dev/root    151361008 61892860  89451764     0.41 /                         
#>  2 tmpfs          8183316        0   8183316     0    /dev/shm                  
#>  3 tmpfs          3273328     1036   3272292     0.01 /run                      
#>  4 efivarfs        131072       32    131036     0.01 /sys/firmware/efi/efivars 
#>  5 none              1024        0      1024     0    /run/credentials/systemd-…
#>  6 none              1024        0      1024     0    /run/credentials/systemd-…
#>  7 /dev/sda13     1012140    85552    857828     0.1  /boot                     
#>  8 /dev/sda15      106832     6414    100418     0.07 /boot/efi                 
#>  9 none              1024        0      1024     0    /run/credentials/systemd-…
#> 10 tmpfs          1636660        8   1636652     0.01 /run/user/1001            
#> 11 none              1024        0      1024     0    /run/credentials/serial-g…
#> 12 none              1024        0      1024     0    /run/credentials/getty@tt…
#>