Get the process ID of the R Session. It is guaranteed by the operating system that two R sessions running simultaneously will have different IDs, but it is possible that R sessions running at different times will have the same ID.
得到的R会话的进程ID。这是保证由操作系统,同时运行的两个R会话都会有不同的ID,但它可能是在不同时间运行的R会话将有相同的ID。
用法----------Usage----------
Sys.getpid()
值----------Value----------
An integer, often between 1 and 32767 under Unix-alikes (but for example FreeBSD and Mac OS >= 10.5 uses IDs up to 99999) and a positive integer up to 32767) under Windows.
一个整数,经常介于1和32767(Unix下相似者,但如FreeBSD和Mac OS> = 10.5使用ID 99999)和一个正整数到32767 Windows下)。