languageserver_detect {languageserversetup} | R Documentation |
Detect whether a process relates to the R Language Server
Description
Detect whether a process relates to the R Language Server
Usage
languageserver_detect(pid, os, langServerProcessPatt, checkParents = TRUE)
Arguments
pid |
integer(1) , id of the process to investigate,
usually retrieved by Sys.getpid
|
os |
character(1) , name of the OS, usually retrieved
as the "sysname" element of Sys.info , all lowercase.
|
langServerProcessPatt |
character(1) , pattern to
recognize the process created by languageserver .
|
checkParents |
logical(1) , if TRUE , parent processes are also
checked in case when pid is not the R Language Server process. This
is needed as the linting processes are created with callr as
sub-processes of the main Language Server process.
|
Value
logical(1), TRUE
if the process with pid
(or, optionally,
any of its parents) is detected as the R Language Server process.
Otherwise FALSE
.
[Package
languageserversetup version 0.1.2
Index]