Skip to content

Commit 46ad3bf

Browse files
committed
add workspace setup
1 parent 9fd9f0d commit 46ad3bf

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed

.Rbuildignore

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@
2121
^tests/_snaps/.
2222
^cran-comments\.md$
2323
^\.github$
24+
\.code-workspace$
25+
\.lintr$

.lintr

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
linters: with_defaults(object_name_linter = NULL,
2+
object_length_linter(40),
3+
commented_code_linter = NULL,
4+
object_usage_linter = NULL,
5+
line_length_linter(120),
6+
cyclocomp_linter = cyclocomp_linter(20))

performance.code-workspace

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
}
6+
],
7+
"launch": {
8+
"version": "0.2.0",
9+
"configurations": [
10+
{
11+
"type": "R-Debugger",
12+
"name": "Launch R-Workspace",
13+
"request": "launch",
14+
"debugMode": "workspace",
15+
"workingDirectory": "${workspaceFolder}"
16+
},
17+
{
18+
"type": "R-Debugger",
19+
"name": "Debug R-File",
20+
"request": "launch",
21+
"debugMode": "file",
22+
"workingDirectory": "${workspaceFolder}",
23+
"file": "${file}"
24+
},
25+
{
26+
"type": "R-Debugger",
27+
"name": "Debug R-Function",
28+
"request": "launch",
29+
"debugMode": "function",
30+
"workingDirectory": "${workspaceFolder}",
31+
"file": "${file}",
32+
"mainFunction": "main",
33+
"allowGlobalDebugging": false
34+
},
35+
{
36+
"type": "R-Debugger",
37+
"name": "Debug R-Package",
38+
"request": "launch",
39+
"debugMode": "workspace",
40+
"workingDirectory": "${workspaceFolder}",
41+
"includePackageScopes": true,
42+
"loadPackages": [
43+
"."
44+
]
45+
},
46+
{
47+
"type": "R-Debugger",
48+
"request": "attach",
49+
"name": "Attach to R process",
50+
"splitOverwrittenOutput": true
51+
}
52+
]
53+
}
54+
}

0 commit comments

Comments
 (0)