diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 617fcb9..0355afd 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,18 +1,32 @@ FROM r-base:4.3.2 -ARG PROJECT_NAME -EXPOSE 3838 - -ARG R_REMOTES_NO_ERRORS_FROM_WARNINGS=false - RUN apt-get update \ - && apt-get install -y cmake - -RUN wget https://github.com/jgm/pandoc/releases/download/2.11.4/pandoc-2.11.4-1-amd64.deb \ - && dpkg -i pandoc-2.11.4-1-amd64.deb \ - && rm pandoc-2.11.4-1-amd64.deb - + && apt-get install -y \ + make \ + cmake \ + wget \ + libcurl4-openssl-dev \ + libssl-dev \ + libxml2-dev \ + libgsl-dev \ + zlib1g-dev \ + libfontconfig1-dev \ + libfreetype6-dev \ + libfribidi-dev \ + libharfbuzz-dev \ + libjpeg-dev \ + libpng-dev \ + libtiff-dev \ + libicu-dev \ + libx11-dev \ + git \ + libgit2-dev \ + pandoc -RUN Rscript -e 'install.packages("remotes");remotes::install_cran(c("ARTool", "broom@1.0.5", "bslib@0.6.1", "car@3.1.2", "dplyr@1.1.3", "emmeans@1.10.0", "fBasics@4032.96", "ggplot2@3.4.4", "gt@0.10.0", "lme4@1.1.35.5", "magrittr@2.0.3", "MASS@7.3.60", "methods@4.3.2", "multcomp@1.4.25", "parameters@0.21.3", "performance@0.10.8","rlang@1.1.2", "shiny@1.8.0","shinydashboard@0.7.2","shinyWidgets@0.8.1", "tidyr@1.3.0"))' +# Install R packages +RUN Rscript -e 'install.packages("remotes")' +Run Rscript -e 'remotes::install_cran(c("ARTool", "broom@1.0.5", "bslib@0.6.1", "car@3.1.2", "dplyr@1.1.3", "emmeans@1.10.0", "fBasics@4032.96", "ggplot2@3.4.4", "gt@0.10.0", "lme4@1.1.35.5", "magrittr@2.0.3", "MASS@7.3.60", "methods@4.3.2", "multcomp@1.4.25", "parameters@0.21.3", "performance@0.10.8","rlang@1.1.2", "shiny@1.8.0","shinydashboard@0.7.2","shinyWidgets@0.8.1", "tidyr@1.3.0"))' +RUN Rscript -e 'install.packages("tidyr")' +RUN Rscript -e 'install.packages("jsonlite")' -USER 999:999 +CMD ["R"] \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b5249b2..d21a846 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -14,6 +14,6 @@ } }, + "remoteUser": "root" - "postCreateCommand": "Rscript -e 'bspm::enable(); devtools::install()'" }