+23
-7
.Rprofile
+23
-7
.Rprofile
···
5
5
rm (r)
6
6
# })
7
7
8
-
# http://stackoverflow.com/questions/24387660/how-to-change-libpaths-permanently-in-r
8
+
# http://STACKOVerflow.com/questions/24387660/how-to-change-libpaths-permanently-in-r
9
9
# Note that the order of these has to be reversed for initial installation of
10
10
# nvimcom, then they can be reset.
11
11
#.libPaths(c ('/usr/local/lib/R/site-library', .libPaths ()))
···
20
20
options (browser = 'firefox')
21
21
#options (prompt='R> ', digits=4)
22
22
23
+
lintr.linter_file = "~/.lintr"
24
+
25
+
# https://github.com/R-nvim/R.nvim/blob/main/doc/R.nvim.txt
26
+
# Section 6.10:
27
+
options(languageserver.server_capabilities = list(
28
+
hoverProvider = FALSE,
29
+
signatureHelpProvider = FALSE,
30
+
completionProvider = FALSE,
31
+
completionItemResolve = FALSE
32
+
))
33
+
23
34
# https://github.com/REditorSupport/languageserver/issues/503
24
-
# cat("<project> [start]", Sys.getpid(), paste0(commandArgs(), collapse = " "), file = "~/rprofile.log", append = TRUE)
35
+
options(languageserver.diagnostics = TRUE)
36
+
cat("<project> [start]", Sys.getpid(), paste0(commandArgs(), collapse = " "), "\n", file = "~/rprofile.log", append = FALSE)
25
37
# options(languageserver.debug = function(options) {
26
38
# TRUE
27
39
# })
40
+
cat("Before language server ...\n", file = "~/rprofile.log", append = TRUE)
28
41
options(languageserver.formatting_style = function(options) {
29
-
spaceout::spaceout_style ()
42
+
cat("In language server ...\n", file = "~/rprofile.log", append = TRUE)
43
+
spaceout::spaceout_style()
30
44
})
31
-
options(languageserver.diagnostics = FALSE)
32
-
# cat("[end]", "\n", file = "~/rprofile.log", append = TRUE)
45
+
# options(languageserver.server_capabilities =
46
+
# list (completionProvider = TRUE, completionItemResolve = TRUE)
47
+
# )
48
+
# options(languageserver.diagnostics = FALSE)
49
+
cat("After language server ...\n", file = "~/rprofile.log", append = TRUE)
50
+
cat("--------[end]\n", "\n", file = "~/rprofile.log", append = TRUE)
33
51
34
52
utils::rc.settings(ipck = TRUE) # tab-complete package names
35
53
···
139
157
message (BG, indent, " *******", BLUE, "RRRRRRR RRRRRRR", BG, " ", NC)
140
158
message (BG, indent, " ", BLUE, "RRRRRRR RRRRRRRR", BG, " ", NC)
141
159
# -------------------- END R SYMBOL -------------------
142
-
143
-
message ("\n")
144
160
145
161
#for (i in 2500:2600)
146
162
# cat(eval(parse(text=paste("\"\\u", i, "\"", sep=""))), " ")