For a zombie process it throws a zombie_process error.

ps_cwd(p)

Arguments

p

Process handle.

Value

String scalar.

See also

Examples

p <- ps_handle() p
#> <ps::ps_handle> PID=17400, NAME=R, AT=2020-02-16 11:38:31
ps_cwd(p)
#> [1] "/tmp/Rtmp6B1y8T/file43788c69af8/reference"