Showing posts with label Maps. Show all posts
Showing posts with label Maps. Show all posts

Sunday, July 02, 2023

R Installation and more

 
* R installation

$sudo apt install r-base

 

* Package installation

install.packages('readr')

 

* install.packages('sf')

//Configuration failed because libudunits2.so was not found

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev 

* install.packages('dplyr') //dataframe, works with R version >= 3.5

* install.packages('tidyverse') //Contains other packages (dplyr, ggplot2, etc.)  

* install.packages('spdep') //Spatial Dependence: Weighting Schemes, Statistics. A collection of functions to create spatial weights matrix objects from polygon

* install.packages('GGally') //extends 'ggplot2'
 
* install.packages('leaflet') //makes it easy to integrate and control Leaflet maps in R.

* install.packages('coda')
 
* install.packages('CARBayes')
* install.packages('CARBayesdata') 
 
* install.packages('xlsx')  
 
    dependences:
      1) java
      2) sudo apt-get install openjdk-11-jdk
      3) sudo R CMD javareconf    
      4) https://github.com/PCRE2Project/pcre2/releases  
      4.1) compilation https://www.appsloveworld.com/r/100/371/how-to-solve-lpcre2-8-error-while-installing-rjava-package-in-r

* install.packages('readxl')
 
* install.packages('tmap')
 
 
 
References:

[1] rstudio https://linuxconfig.org/rstudio-on-ubuntu-18-04-bionic-beaver-linux

[2] R 3.5 installation on Linux 18 https://rtask.thinkr.fr/installation-of-r-3-5-on-ubuntu-18-04-lts-and-tips-for-spatial-packages

[2] rstudio previous https://docs.posit.co/previous-versions/rstudio/

Firefox open multiple private window

    /opt/firefox/firefox-bin --profile $(mktemp -d) --private-window www.google.com www.bing.com