Learn R Programming

fame (version 1.13)

osUtilities: Operating System Utilities

Description

user returns the user id of the current user.

groups returns a character vector of the Linux security groups user. is a member of.

pid, pgid and ppid return the process, group and parent process ID numbers, respectively, of the current Rprocess.

killProcess kills a specified process.

pwd returns the process working directory.

runningLinux is shorthand for Sys.info()["sysname"] == "Linux".

runningWindows is shorthand for .Platform$OS.type == "windows".

Usage

user()
groups(user. = user())
pid()
pgid()
ppid()
killProcess(pid)
pwd()
runningLinux()
runningWindows()

Arguments

user.
a user id
pid
a process id number