Trinn 1: Installere R
Trinn 2: Installere pakker
R er et programmeringsspråk som ofte brukes av statistikere på grunn av dets evner innen statistisk databehandling. I denne veiledningen skal vi installere R på Ubuntu 15.10.
Trinn 1: Installere R
Du kan installere R ved å utføre:
apt-get -y install r-base
Prøv å kjøre kommandoen 'R' (stor bokstav).
R version 3.2.2 (2015-08-14) -- "Fire Safety"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
Slutte:
q(save = "no")
Trinn 2: Installere pakker
R-pakker er pakker som utvider mulighetene til R. Skriv inn R:
R
Det er to måter å installere R-pakker på. Først av alt, hvis du vil installere en pakke kun for den nåværende brukeren, kan du utføre følgende i R:
install.packages("name")
Hvis du vil installere en pakke som er tilgjengelig for alle brukere på systemet, er det flere speil for både R og pakkene. Henrette:
su - -c "R -e \"install.packages('name', repos = 'http://cran.rstudio.com/')\""
Erstatt namemed pakkenavnet.
Vær oppmerksom på at du ikke ønsker å installere R med pakker på en server med mindre enn 1 GB RAM.
For videre læring, vennligst besøk R-nettstedet .