Skip to content
Snippets Groups Projects
Commit 4cfac6c0 authored by Carine Rey's avatar Carine Rey
Browse files

update session1 for gitlab pages

parent 3843a51d
No related branches found
No related tags found
No related merge requests found
Pipeline #359 failed
...@@ -8,7 +8,7 @@ output: ...@@ -8,7 +8,7 @@ output:
use_bookdown: true use_bookdown: true
default_style: "light" default_style: "light"
lightbox: true lightbox: true
css: "http://perso.ens-lyon.fr/laurent.modolo/R/src/style.css" css: "www/style_Rmd.css"
--- ---
```{r setup, include=FALSE} ```{r setup, include=FALSE}
...@@ -16,7 +16,13 @@ rm(list=ls()) ...@@ -16,7 +16,13 @@ rm(list=ls())
knitr::opts_chunk$set(echo = TRUE) knitr::opts_chunk$set(echo = TRUE)
knitr::opts_chunk$set(comment = NA) knitr::opts_chunk$set(comment = NA)
``` ```
```{r klippy, echo=FALSE, include=TRUE}
```{r klippy, echo=FALSE, include=FALSE}
if (! require("klippy")) {
install.packages("remotes")
remotes::install_github("rlesur/klippy")
}
klippy::klippy( klippy::klippy(
position = c('top', 'right'), position = c('top', 'right'),
color = "white", color = "white",
...@@ -74,11 +80,16 @@ Reasons to use it: ...@@ -74,11 +80,16 @@ Reasons to use it:
```{r echo=F} ```{r echo=F}
cran_packages <- nrow(available.packages(repos = "http://cran.us.r-project.org")) cran_packages <- nrow(available.packages(repos = "http://cran.us.r-project.org"))
if (! require("rvest")) {
install.packages("rvest", quiet = T)
}
library(rvest) library(rvest)
url <- 'https://www.bioconductor.org/packages/release/bioc/' url <- 'https://www.bioconductor.org/packages/release/bioc/'
biocPackages <- url %>% read_html() %>% html_table() %>%.[[1]] biocPackages <- url %>% read_html() %>% html_table() %>%.[[1]]
bioconductor_packages <- nrow(biocPackages) bioconductor_packages <- nrow(biocPackages)
```` ```
- **`r cran_packages`** available packages on https://cran.r-project.org/ - **`r cran_packages`** available packages on https://cran.r-project.org/
- **`r bioconductor_packages`** available packages on http://www.bioconductor.org - **`r bioconductor_packages`** available packages on http://www.bioconductor.org
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment