Type: | Package |
Title: | Automated Setup and Auto Run for R Language Server |
Version: | 0.1.2 |
Maintainer: | Jozef Hajnala <jozef.hajnala@gmail.com> |
Description: | Allows to install the R 'languageserver' with all dependencies into a separate library and use that independent installation automatically when R is instantiated as a language server process. Useful for making language server seamless to use without running into package version conflicts. |
License: | AGPL-3 |
Suggests: | tinytest |
Encoding: | UTF-8 |
LazyData: | true |
RoxygenNote: | 6.0.1 |
SystemRequirements: | procps (linux), ps (macos), wmic (windows) |
URL: | https://github.com/jozefhajnala/languageserversetup |
BugReports: | https://github.com/jozefhajnala/languageserversetup/issues |
Language: | en-US |
NeedsCompilation: | no |
Packaged: | 2020-04-10 08:46:08 UTC; root |
Author: | Jozef Hajnala [aut, cre] |
Repository: | CRAN |
Date/Publication: | 2020-04-10 09:20:02 UTC |
Add language server initialization to .Rprofile
Description
Add language server initialization to .Rprofile
Usage
languageserver_add_to_rprofile(rlsLib = getOption("langserver_library"),
rprofilePath = locate_rprofile(), confirmBeforeChanging = TRUE,
code = append_code(rlsLib = rlsLib))
Arguments
rlsLib |
|
rprofilePath |
Notably, if the |
confirmBeforeChanging |
|
code |
|
Value
side-effects
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 |
|
os |
|
langServerProcessPatt |
|
checkParents |
|
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
.
Install the languageserver
package to a separate library
Description
Install the languageserver
package to a separate library
Usage
languageserver_install(rlsLib = getOption("langserver_library"),
strictLibrary = TRUE, fullReinstall = TRUE, fromGitHub = TRUE,
confirmBeforeInstall = TRUE, dryRun = FALSE, ...)
Arguments
rlsLib |
|
strictLibrary |
|
fullReinstall |
|
fromGitHub |
|
confirmBeforeInstall |
|
dryRun |
|
... |
further arguments passed to |
Value
side-effects
See Also
Remove language server initialization from .Rprofile
Description
Remove language server initialization from .Rprofile
Usage
languageserver_remove_from_rprofile(rlsLib = getOption("langserver_library"),
rprofilePath = locate_rprofile(), code = append_code(rlsLib = rlsLib),
confirmBeforeChanging = TRUE)
Arguments
rlsLib |
|
rprofilePath |
Notably, if the |
code |
|
confirmBeforeChanging |
|
Value
side-effects
Prepare language server to be started
Description
Prepare language server to be started
Usage
languageserver_startup(rlsLib = getOption("langserver_library"),
langServerProcessPatt = getOption("langserver_processPatt"),
strictLibrary = TRUE, os = tolower(Sys.info()[["sysname"]]),
pid = Sys.getpid())
Arguments
rlsLib |
|
langServerProcessPatt |
|
strictLibrary |
|
os |
|
pid |
|
Value
side-effects