Skip to content

Commit 9f239e3

Browse files
committed
extend .gitignore and add devcontainer
1 parent 7a4979f commit 9f239e3

File tree

3 files changed

+86
-0
lines changed

3 files changed

+86
-0
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
^\.vscode$
1010
^_pkgdown\.yml$
1111
^\.github$
12+
^\.devcontainer$
1213

.devcontainer/devcontainer.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "R Development",
3+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
4+
"features": {
5+
"ghcr.io/devcontainers/features/git:1": {},
6+
"ghcr.io/rocker-org/devcontainer-features/r-rig:latest": {
7+
"version": "4.4.2",
8+
"installRadian": true,
9+
"installVscDebugger": true,
10+
"installJupyterlab": true,
11+
"vscodeRSupport": "lsp"
12+
}
13+
},
14+
"customizations": {
15+
"vscode": {
16+
"settings": {
17+
"r.rpath.linux": "/usr/local/bin/R",
18+
"r.rterm.linux": "/usr/local/bin/radian",
19+
"r.rterm.option": [
20+
"--no-save",
21+
"--no-restore",
22+
"--r-binary=/usr/local/bin/R"
23+
],
24+
"files.autoSave": "afterDelay",
25+
"files.autoSaveDelay": 1000,
26+
"editor.formatOnSave": true,
27+
"editor.formatOnPaste": true,
28+
"editor.defaultFormatter": null,
29+
"r.bracketedPaste": true,
30+
"[r]": {
31+
"editor.defaultFormatter": "Posit.air-vscode"
32+
}
33+
},
34+
"extensions": [
35+
"reditorsupport.r",b.copilot-chat"
36+
]
37+
}
38+
},
39+
"postCreateCommand": "echo Hello World"
40+
}

.gitignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,48 @@ po/*~
3535
inst/doc
3636
.Rproj.user
3737
.DS_Store
38+
39+
# ─────── Data files ───────
40+
# CSV & tabular
41+
*.csv
42+
*.tsv
43+
44+
# SAS
45+
*.sas7bdat
46+
*.sas7bcat
47+
48+
# Excel
49+
*.xls
50+
*.xlsx
51+
*.xlsm
52+
*.xlsb
53+
54+
# SPSS, Stata
55+
*.sav
56+
*.dta
57+
58+
# R
59+
*.rda
60+
*.rdata
61+
*.rds
62+
63+
# MATLAB, HDF5
64+
*.mat
65+
*.h5
66+
67+
# SQLite, DB
68+
*.db
69+
*.sqlite
70+
*.db3
71+
72+
# Documents & reports
73+
*.pdf
74+
*.doc
75+
*.docx
76+
*.ppt
77+
*.pptx
78+
79+
# Generic archives (if you also want to block ZIPs, etc.)
80+
*.zip
81+
*.tar
82+
*.gz

0 commit comments

Comments
 (0)