| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/utils.R |
| 3 |
\name{get_caller} |
| 4 |
\alias{get_caller} |
| 5 |
\alias{system_infos} |
| 6 |
\alias{get_user} |
| 7 |
\title{Information About the System} |
| 8 |
\usage{ |
| 9 |
get_caller(where = -1L) |
| 10 |
|
| 11 |
get_user(fallback = "unknown user") |
| 12 |
} |
| 13 |
\arguments{ |
| 14 |
\item{where}{\code{integer} scalar (usually negative). Look up that many frames |
| 15 |
up the call stack} |
| 16 |
|
| 17 |
\item{fallback}{A fallback in case the user name could not be determined} |
| 18 |
} |
| 19 |
\value{ |
| 20 |
a \code{character} scalar. |
| 21 |
} |
| 22 |
\description{ |
| 23 |
\code{get_caller()} Tries to determine the calling functions based on \code{where}. |
| 24 |
} |
| 25 |
\examples{ |
| 26 |
foo <- function() get_caller(-1L) |
| 27 |
foo() |
| 28 |
get_user() |
| 29 |
} |
| 30 |
\seealso{ |
| 31 |
\code{\link[base:sys.parent]{base::sys.call()}} |
| 32 |
|
| 33 |
\code{\link[whoami:whoami]{whoami::whoami()}} |
| 34 |
} |