Skip to content

Commit

Permalink
Add a .devcontainer (#1571)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Jan 17, 2024
1 parent 767ec1b commit ca70262
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
^\.github$
^pkgdown$
^\.covrignore$
^\.devcontainer$
^azure-pipelines\.yml$
^\.Rprofile$
^r-packages$
Expand Down
15 changes: 15 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM rocker/r-base

RUN apt-get -qq update && \
apt-get install -y --no-install-recommends git libxml2-dev

COPY DESCRIPTION .

RUN Rscript -e ' \
install.packages("remotes"); \
remotes::install_deps(dependencies = c( \
"Imports", \
"LinkingTo", \
"Config/Needs/development" \
)) \
'
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"build": { "dockerfile": "Dockerfile", "context": ".."}
}
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ LinkingTo:
cpp11
VignetteBuilder:
knitr
Config/Needs/development: testthat
Config/Needs/website: tidyverse/tidytemplate
Config/testthat/edition: 3
Config/testthat/parallel: TRUE
Expand Down

0 comments on commit ca70262

Please sign in to comment.