getfd(
on.error = stop("No file sourced. Maybe you're in an interactive shell?", call. =
FALSE),
winslash = "/"
)
Value
Current file directory as string
Arguments
on.error
Expression to use if the current file directory cannot be determined. In that case, normalizePath(on.error, winslash) is returned. Can also be an expression like stop("message") to stop execution (default).