Skip to content

Note that in some IDEs, e.g. RStudio or R.app on macOS, the IDE itself opens files from other threads, in addition to the files opened from the main R thread.

Usage

ps_num_fds(p = ps_handle())

Arguments

p

Process handle.

Value

Integer scalar.

Details

For a zombie process it throws a zombie_process error.

Examples

p <- ps_handle()
ps_num_fds(p)
#> [1] 19
f <- file(tmp <- tempfile(), "w")
ps_num_fds(p)
#> [1] 20
close(f)
unlink(tmp)
ps_num_fds(p)
#> [1] 19