From e1bee0ff18c88db7190f949c275c4cc206c32a90 Mon Sep 17 00:00:00 2001 From: babaolanqiu Date: Sun, 25 Aug 2024 17:36:43 +0800 Subject: [PATCH] chore: Update devcontainer configuration --- devcontainer.json | 10 +++++----- postCreateCommand.sh | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/devcontainer.json b/devcontainer.json index 313fc4c..52db3f2 100644 --- a/devcontainer.json +++ b/devcontainer.json @@ -13,14 +13,14 @@ "installRMarkdown": true, "installVscDebugger": true }, - "ghcr.io/rocker-org/devcontainer-features/apt-packages:1": { + "ghcr.io/h4rvey-g/rocker-devcontainer-features/apt-packages:1": { "packages": "r-cran-data.table,r-cran-tidyverse", "upgradePackages": true }, - "ghcr.io/rocker-org/devcontainer-features/miniforge:1": {}, - "ghcr.io/rocker-org/devcontainer-features/r-packages:1": { - "rliger,Seurat,qs,targets" - } + // "ghcr.io/rocker-org/devcontainer-features/miniforge:1": {}, + // "ghcr.io/rocker-org/devcontainer-features/r-packages:1": { + // "packages": "rliger,Seurat,qs,targets" + // } }, "shutdownAction": "none", "overrideFeatureInstallOrder": [ diff --git a/postCreateCommand.sh b/postCreateCommand.sh index 768aec2..9023152 100644 --- a/postCreateCommand.sh +++ b/postCreateCommand.sh @@ -13,3 +13,5 @@ echo 'if (interactive() && Sys.getenv("RSTUDIO") == "") { echo 'options(defaultPackages=c(getOption("defaultPackages"), "tidyverse", "targets", "qs"' >>~/.Rprofile # add github hosts curl https://gitlab.com/ineo6/hosts/-/raw/master/next-hosts | sudo tee -a /etc/hosts +# use pak to install "rliger,Seurat,qs,targets" +Rscript -e 'pak::pkg_install(c("rliger","Seurat","qs","targets","crew"))'