class: center, middle, inverse, title-slide # Introduction to R ## R Foundations for Life Scientists ###
Marcin Kierczak
| 06-Nov-2020 ### NBIS, SciLifeLab --- exclude: true count: false <link href="https://fonts.googleapis.com/css?family=Roboto|Source+Sans+Pro:300,400,600|Ubuntu+Mono&subset=latin-ext" rel="stylesheet"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous"> <!-- ------------ Only edit title, subtitle & author above this ------------ --> --- name: content class: spaced ## Contents * [About R](#about) * [Timeline](#timeline) * [Ideas behind R](#ideas) * [Pros and cons of R](#pros_and_cons) * [Ecosystem of packages](#num_packages) --- name: about ## Breifly about R **R definitely is:** * a programming language -- * a programming platform (= environment + interpreter) -- * a software project driven by the core team and the community -- * a very powerful tool for statistical computing -- * a very powerful computational tool in general -- * a catalyst between an idea and its realization -- **But NOT!** * a tool to replace a statistician -- * the very best programming language -- * the most elegant programming solution -- * the most efficient programming language -- **Yet...** * it is very elegant -- * it becomes more and more efficient .pull-right-70[.size-20[![](data/slide_intro/Rlogo.png)]] --- name: timeline ## Timeline * ca. 1992 — conceived by [Robert Gentleman](https://bit.ly/35kn99L) and [Ross Ihaka](https://en.wikipedia.org/wiki/Ross_Ihaka) (R&R) at the University of Auckland, NZ as a tool for **teaching statistics** -- .size-20[![](data/slide_intro/Ihaka_and_Gentleman.jpg)] -- * 1994 — initial version * 2000 — stable version -- * 2011 — [RStudio](https://en.wikipedia.org/wiki/RStudio), first release by J.J. Allaire .size-20[![](data/slide_intro/jjallaire_siliconangle_com.jpg)] -- * ca. 2017 — Tidyverse by [Hadley Wickham](https://en.wikipedia.org/wiki/Hadley_Wickham) .size-20[![](data/slide_intro/hadley-wickham.jpg)] --- name: ideas ## Ideas behind R * open-source solution — fast development -- * based on the [S language](https://en.wikipedia.org/wiki/S_%28programming_language%29) created at the Bell Labs by [John Mc Kinley Chambers](https://bit.ly/2RhDqUx) to -- > *turn ideas into software, quickly and faithfully* -- * [lexical scope](https://en.wikipedia.org/wiki/Scope_%28computer_science%29%23Lexical_scoping) inspired by [Lisp](https://en.wikipedia.org/wiki/Lisp) syntax -- * since 1997 developed by the R Development Core Team (ca. 20 experts, with Chambers onboard; 6 are active) -- * overviewed by [The R Foundation for Statistical Computing](https://www.r-project.org/foundation/) -- ### Packages .pull-right-50[ <img src="data/slide_intro/packages.jpg" width="250pt" style="display: block; margin: auto;" /> ] -- * developed by the community -- * cover several very diverse areas of science/life -- * uniformely structured and documented -- * organised in repositiries: + [CRAN](https://cran.r-project.org) - The Comprehensive R Archive Network + [R-Forge](https://r-forge.r-project.org) + [Bioconductor](http://www.bioconductor.org) + [GitHub](https://github.com) --- name: pros_and_cons class: spaced ## Pros and cons <i class='fa fa-minus-square'></i> steep learning curve -- <i class='fa fa-plus-square'></i> uniform, clear and clean system of documentation and help -- <i class='fa fa-minus-square'></i> difficulties due to a limited object-oriented programming capabilities, e.g. an agent-based simulation is a challenge -- <i class='fa fa-plus-square'></i> good interconnectivity with compiled languages like Java or C -- <i class='fa fa-minus-square'></i> cannot order a pizza for you (?) -- <i class='fa fa-plus-square'></i> a very powerful ecosystem of packages -- <i class='fa fa-plus-square'></i> free and open source, GNU GPL and GNU GPL 2.0 -- <i class='fa fa-plus-square'></i> easy to generate high quality graphics --- name: num_packages ## Ecosystem of R packages <br> <br> <br> <img src="slide_r_intro_files/figure-html/num_pkgs-1.svg" style="display: block; margin: auto;" /> <!-- --------------------- Do not edit this and below --------------------- --> --- name: end_slide class: end-slide, middle count: false # Now you know a bit more about R! .end-text[ <p>R version 4.0.3 (2020-10-10)<br><p>Platform: x86_64-pc-linux-gnu (64-bit)</p><p>OS: Ubuntu 18.04.5 LTS</p><br> <hr> <span class="small">Built on : <i class='fa fa-calendar' aria-hidden='true'></i> 06-Nov-2020 at <i class='fa fa-clock-o' aria-hidden='true'></i> 22:20:57</span> <b>2020</b> • [SciLifeLab](https://www.scilifelab.se/) • [NBIS](https://nbis.se/) ]