Find

whoami – retrieve user identity information in R

whoami is an R package that retrieves identity information about the current user. It provides functions for obtaining the username, full name, email address and GitHub username associated with a working environment.

The package gathers this information from several sources, including environment variables, operating system user records and Git configuration. It attempts to find suitable values without requiring applications to implement their own platform-specific identity discovery routines.

This is useful when generating reports, populating metadata, identifying the person running a script or supplying default author details in development workflows.

The package distinguishes between the username recognized by the operating system and the identity configured for development tools. These values may differ, particularly on machines used by multiple developers or systems running automated tasks.

This is free and open source software.

Key Features

  • Retrieves the current user’s login name.
  • Obtains the user’s full name from available system information.
  • Reads email addresses from global Git configuration.
  • Identifies GitHub usernames using environment variables or email-based lookups.
  • Checks LOGNAME, USER, LNAME and USERNAME environment variables.
  • Uses system identity commands when environment variables are unavailable.
  • Provides separate functions for individual identity fields.
  • Offers a combined function returning available user identity information.
  • Supports different home directory arrangements when locating Git configuration.
  • Can be integrated into scripts and development tools requiring user metadata.
  • Cross-platform support – runs on Linux, macOS, and Windows.

Website: github.com/r-lib/whoami
Support:
Developer: Gábor Csárdi
License: MIT License

whoami is written in R. Learn R with our recommended free books and free tutorials.

Alternatives to who


Explore Linux

Best Free and Open Source Software - A huge collection of recommended free and open source software covering every major category.
In-depth Linux Software Reviews - Detailed assessments of Linux software covering features, usability and overall quality.

The Big List of Active Linux Distros - An extensive collection of actively developed Linux distributions.
Open Source Alternatives - Alternatives to software and services from Google, Microsoft, Apple, Adobe, IBM, Autodesk, Oracle and others.
Essential Linux System Tools - Indispensable utilities for monitoring, maintaining and managing Linux systems.
Linux Productivity Tools - Useful utilities for improving productivity and streamlining everyday tasks.
Alternatives to Popular CLI Tools - Modern alternatives to familiar command-line utilities supplied with Linux systems.
Awesome Free Linux Game Tools - Tools, utilities and companion software that improve gaming on Linux.
Machine Learning on Linux - Machine learning and deep learning software, self-hosted applications and practical tools.
Saving Money with Linux - Practical ways to reduce electricity consumption and lower computing costs with Linux.
Linux Candy - Fun, entertaining and sometimes delightfully quirky software from the lighter side of Linux.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted