Skip to content

Instantly share code, notes, and snippets.

@aferral
Created February 3, 2023 17:24
Show Gist options
  • Save aferral/afc48bd3c5ed3613d3861db41fbabc87 to your computer and use it in GitHub Desktop.
Save aferral/afc48bd3c5ed3613d3861db41fbabc87 to your computer and use it in GitHub Desktop.
# NOTAS USO:
# build
# docker build -t spat_index_r .
# run (abrir entorno docker en modo interactivo)
# se asume que Datos_Andres esta en la carpeta actual y tiene los scripts a ejecutar
# docker run -it -v $(pwd)/Datos_Andres:/Datos_Andres --rm spat_index_r bash
# run script
# Rscript Datos_Andres/Calculo_SPI_diario.R
FROM rocker/geospatial
RUN Rscript -e "install.packages('terra')" && Rscript -e "install.packages('remotes')" && Rscript -e "devtools::install_github('spatstat/spatstat.core')" && Rscript -e "remotes::install_github('obaezvil/SpatIndex')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment