Examples for 'base::Sys.getpid'


Get the Process ID of the R Session

Aliases: Sys.getpid

Keywords: utilities

### ** Examples
## No test: 
Sys.getpid()
[1] 653915
## Show files opened from this R process
if(.Platform$OS.type == "unix") ## on Unix-alikes such Linux, macOS, FreeBSD:
   system(paste("lsof -p", Sys.getpid()))
## End(No test)

[Package base version 4.2.3 Index]