class: center, middle, inverse, title-slide .title[ # Introduction to R ] .subtitle[ ## R Foundations for Life Scientists ] .author[ ### Marcin Kierczak ] --- 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 # Briefly about R .pull-left-50[ # R 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 ] -- .pull-right-50[ # R is not ... * a tool to replace a statistician * the very best programming language * the most elegant programming solution * the most efficient programming language ] -- .pull-left-70[ # Yet ... * it is very elegant * it becomes more and more feature-rich ] .pull-right-30[ ![](data/common/r.png) ] --- name: timeline # Timeline -- .pull-left-50[ ![](data/slide_intro/Ihaka_and_Gentleman.jpg) * 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** * 1994 — initial version * 2000 — stable version ] -- .pull-right-50[ ![](data/slide_intro/jjallaire_siliconangle_com.jpg) * 2011 — [RStudio](https://en.wikipedia.org/wiki/RStudio), first release by J.J. Allaire ![](data/slide_intro/hadley-wickham.jpg) * ca. 2017 — Tidyverse by [Hadley Wickham](https://en.wikipedia.org/wiki/Hadley_Wickham) ] --- 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/) --- name: packages # 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) + [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> <img src="slide_r_intro_files/figure-html/num_pkgs-1.png" width="648" style="display: block; margin: auto;" /> <!-- --------------------- Do not edit this and below --------------------- --> --- name: end_slide class: end-slide, middle count: false # Thank you! Questions? .end-text[ <p class="smaller"> <span class="small" style="line-height: 1.2;">Graphics from </span><img src="./assets/freepik.jpg" style="max-height:20px; vertical-align:middle;"><br> Created: 25-Oct-2023 • <a href="https://www.scilifelab.se/">SciLifeLab</a> • <a href="https://nbis.se/">NBIS</a> </p> ]