Skip to content

Commit

Permalink
Devcontainer (#41)
Browse files Browse the repository at this point in the history
* copy .devcontainer from lintr

* localize

* R ignores
  • Loading branch information
MichaelChirico authored Dec 29, 2024
1 parent 6cedb4c commit de24ddf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
^.*\.Rproj$
^\.Rproj\.user$
^\.devcontainer$
^\.github$
^funchir_.*\.tar\.gz$
^\.lintr\.R$
11 changes: 11 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM rocker/r-base

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

COPY DESCRIPTION .

RUN Rscript -e ' \
install.packages("remotes"); \
remotes::install_deps(dependencies = "Imports") \
'
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": ".."}
}

0 comments on commit de24ddf

Please sign in to comment.