Created
December 1, 2022 23:42
-
-
Save guidorice/4e859e562614892b81c615e7795e5ce0 to your computer and use it in GitHub Desktop.
install R on ubuntu
This file contains hidden or 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
| 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