Skip to content

Instantly share code, notes, and snippets.

@guidorice
Created December 1, 2022 23:42
Show Gist options
  • Select an option

  • Save guidorice/4e859e562614892b81c615e7795e5ce0 to your computer and use it in GitHub Desktop.

Select an option

Save guidorice/4e859e562614892b81c615e7795e5ce0 to your computer and use it in GitHub Desktop.
install R on ubuntu
apt-get install -y --no-install-recommends gdebi-core
export R_VERSION=4.2.2
curl -O https://cdn.rstudio.com/r/ubuntu-1804/pkgs/r-${R_VERSION}_1_amd64.deb
gdebi --non-interactive r-${R_VERSION}_1_amd64.deb
export PATH=${PATH}:/opt/R/${R_VERSION}/bin
R -e "install.packages(c('devtools', 'plyr', 'tidyverse', 'raster', 'celestial', 'caret', 'fastICA', 'SOAR', 'RStoolbox', 'jsonlite', 'data.table', 'spdep'), repos='http://cran.us.r-project.org')"
R -e "devtools::install_github('OpenDroneMap/FIELDimageR')"
rm r-${R_VERSION}_1_amd64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment