forked from boettiger-lab/nasa-topst-env-justice
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/espm-157/nasa-topst-env-jus…
- Loading branch information
Showing
5 changed files
with
25 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
#! /usr/local/bin/Rscript | ||
# install R dependencies | ||
|
||
# We could use renv.lock approach here instead, but will force re-creation of environment from scratch | ||
# Does not provide a good way to ensure that sf/terra/gdalcubes are installed from source while other packages can be binary | ||
|
||
install.packages(c("rstac", "spData")) | ||
remotes::install_github("boettiger-lab/earthdatalogin") | ||
install.packages(c("rstac", "spData", "earthdatalogin", "quarto")) | ||
remotes::install_github('r-tmap/tmap') | ||
|
||
#install.packages(c("IRkernel", "languageserver", "httpgd")) | ||
#IRkernel::installspec() | ||
install.packages(c("IRkernel", "languageserver", "httpgd")) | ||
IRkernel::installspec() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
sudo useradd rstudio -u 1000 -s /bin/bash | ||
mkdir -p ~/.local/share/rstudio/projects_settings | ||
sudo mkdir -p /home/rstudio/.local/share/rstudio/projects_settings | ||
export RPROJ"=$(ls -d $PWD/*.Rproj)" | ||
sudo echo ${RPROJ} > ~/.local/share/rstudio/projects_settings/last-project-path | ||
sudo cp ~/.local/share/rstudio/projects_settings/last-project-path /home/rstudio/.local/share/rstudio/projects_settings/last-project-path | ||
sudo chown -R rstudio:rstudio /home/rstudio/.local/share/rstudio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
image: ghcr.io/boettiger-lab/nasa-tops:latest | ||
tasks: | ||
- name: rstudio-init | ||
init: bash .devcontainer/setup.sh | ||
- name: setup | ||
init: bash .gitpod-setup.sh | ||
- name: rstudio-server | ||
init: sudo rstudio-server start |