Skip to content

Commit

Permalink
Merge pull request #655 from REditorSupport/devcontainer
Browse files Browse the repository at this point in the history
Add devcontainer configs
  • Loading branch information
renkun-ken committed Jan 28, 2024
2 parents 5dcf744 + 489ed15 commit f715de6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ man-roxygen
^codecov.yml$
^.lintr$
^CRAN-SUBMISSION$
^\.devcontainer$
14 changes: 14 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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", \
"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 @@ -51,3 +51,4 @@ NeedsCompilation: yes
Roxygen: list(markdown = TRUE, r6 = FALSE)
RoxygenNote: 7.2.1
Config/testthat/edition: 3
Config/Needs/development: testthat, magrittr, mockery, purrr, withr, rmarkdown

0 comments on commit f715de6

Please sign in to comment.