| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/id.R |
| 3 |
\name{id} |
| 4 |
\alias{id} |
| 5 |
\alias{group_ids} |
| 6 |
\alias{user_ids} |
| 7 |
\title{Lookup Users and Groups on a system} |
| 8 |
\usage{ |
| 9 |
group_ids() |
| 10 |
|
| 11 |
user_ids() |
| 12 |
} |
| 13 |
\value{ |
| 14 |
They return their results in a \code{data.frame}. On windows both |
| 15 |
functions return an empty \code{data.frame} because windows does not have user |
| 16 |
or group ids. |
| 17 |
} |
| 18 |
\description{ |
| 19 |
These functions use the GETPWENT(3) and GETGRENT(3) system calls to query |
| 20 |
users and groups respectively. |
| 21 |
} |
| 22 |
\examples{ |
| 23 |
# list first 6 groups |
| 24 |
head(group_ids()) |
| 25 |
|
| 26 |
# list first 6 users |
| 27 |
head(user_ids()) |
| 28 |
} |