Skip to content

Commit f715de6

Browse files
authored
Merge pull request #655 from REditorSupport/devcontainer
Add devcontainer configs
2 parents 5dcf744 + 489ed15 commit f715de6

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ man-roxygen
88
^codecov.yml$
99
^.lintr$
1010
^CRAN-SUBMISSION$
11+
^\.devcontainer$

.devcontainer/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM rocker/r-base
2+
3+
RUN apt-get -qq update && \
4+
apt-get install -y --no-install-recommends git libxml2-dev
5+
6+
COPY DESCRIPTION .
7+
8+
RUN Rscript -e ' \
9+
install.packages("remotes"); \
10+
remotes::install_deps(dependencies = c( \
11+
"Imports", \
12+
"Config/needs/development" \
13+
)) \
14+
'

.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"build": { "dockerfile": "Dockerfile", "context": ".."}
3+
}

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,4 @@ NeedsCompilation: yes
5151
Roxygen: list(markdown = TRUE, r6 = FALSE)
5252
RoxygenNote: 7.2.1
5353
Config/testthat/edition: 3
54+
Config/Needs/development: testthat, magrittr, mockery, purrr, withr, rmarkdown

0 commit comments

Comments
 (0)