Skip to content

Commit

Permalink
Deploy QCBSRworkshops/workshop05 to github.com/QCBSRworkshops/worksho…
Browse files Browse the repository at this point in the history
…p05.git:master
  • Loading branch information
traviscibot committed Mar 10, 2020
1 parent 046fada commit 3bc6577
Show file tree
Hide file tree
Showing 25 changed files with 1,809 additions and 596 deletions.
40 changes: 16 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,32 @@

This series of 10 workshops walks participants through the steps required to use R for a wide array of statistical analyses relevant to research in biology and ecology. These open-access workshops were created by members of the QCBS both for members of the QCBS and the larger community.

The content of this workshop has been peer-reviewed by several QCBS members. If you would like to suggest modifications, please contact the current series coordinators, listed [here](https://wiki.qcbs.ca/r).
The content of this workshop has been peer-reviewed by several QCBS members. If you would like to suggest modifications, please contact the current series coordinators, listed [here](https://wiki.qcbs.ca/r) or open a pull request (see contributing guidelines at https://qcbsrworkshops.github.io/guidelines.html).

# [Série d'ateliers R du CSBQ](https://wiki.qcbs.ca/r)

Cette série de 10 ateliers guide les participants à travers les étapes requises afin de maîtriser le logiciel R pour une grande variété d’analyses statistiques pertinentes en recherche en biologie et en écologie. Ces ateliers en libre accès ont été créés par des membres du CSBQ à la fois pour les membres du CSBQ et pour la grande communauté d’utilisateurs de R.

Le contenu de cet atelier a été révisé par plusieurs membres du CSBQ. Si vous souhaitez y apporter des modifications, veuillez SVP contacter les coordonnateurs actuels de la série, listés [ici](https://wiki.qcbs.ca/r).
Le contenu de cet atelier a été révisé par plusieurs membres du CSBQ. Si vous souhaitez y apporter des modifications, veuillez SVP contacter les coordonnateurs actuels de la série, listés [ici](https://wiki.qcbs.ca/r)
ou ouvrez un pull request (voir les instructions https://qcbsrworkshops.github.io/guidelines.html).

# Workshop 5: Programming in R

[![Build Status](https://travis-ci.org/QCBSRworkshops/workshop05.svg?branch=dev)](https://travis-ci.org/QCBSRworkshops/workshop05)
# Workshop 5: Programming in R
[![Build Status](https://img.shields.io/travis/QCBSRworkshops/workshop05/dev?style=flat-square&logo=travis)](https://travis-ci.org/QCBSRworkshops/workshop05)
[![badge](https://img.shields.io/static/v1?style=flat-square&label=repo&message=dev&color=6f42c1&logo=github)](https://github.com/QCBSRworkshops/workshop05)
[![badge](https://img.shields.io/static/v1?style=flat-square&label=wiki&message=05&logo=wikipedia)](https://wiki.qcbs.ca/r_workshop5)
[![badge](https://img.shields.io/static/v1?style=flat-square&label=Slides&message=05&color=red&logo=html5)](https://qcbsrworkshops.github.io/workshop05/workshop05-en/workshop05-en.html)
[![badge](https://img.shields.io/static/v1?style=flat-square&label=Slides&message=05&color=red&logo=adobe-acrobat-reader)](https://qcbsrworkshops.github.io/workshop05/workshop05-en/workshop05-en.pdf)
[![badge](https://img.shields.io/static/v1?style=flat-square&label=script&message=05&color=2a50b8&logo=r)](https://qcbsrworkshops.github.io/workshop05/workshop05-en/workshop05-en.R)

This workshop focuses on basic programming in R. In this workshop, you will learn how to use control flow (`for` loops, `if`, `while`) methods to prevent code repetition, facilitate organization and run simulations. In addition, you will learn to write your own functions, and tips to program efficiently. The last part of the workshop will discuss packages that will not be covered elsewhere in this workshop series, but that may be of interest to participants.

# Atelier 5: Programmation en R

[![Build Status](https://travis-ci.org/QCBSRworkshops/workshop05.svg?branch=dev)](https://travis-ci.org/QCBSRworkshops/workshop05)
[![Build Status](https://img.shields.io/travis/QCBSRworkshops/workshop05/dev?style=flat-square&logo=travis)](https://travis-ci.org/QCBSRworkshops/workshop05)
[![badge](https://img.shields.io/static/v1?style=flat-square&label=repo&message=dev&color=6f42c1&logo=github)](https://github.com/QCBSRworkshops/workshop05)
[![badge](https://img.shields.io/static/v1?style=flat-square&label=wiki&message=05&logo=wikipedia)](https://wiki.qcbs.ca/r_atelier5)
[![badge](https://img.shields.io/static/v1?style=flat-square&label=Diapos&message=05&color=red&logo=html5)](https://qcbsrworkshops.github.io/workshop05/workshop05-fr/workshop05-fr.html)
[![badge](https://img.shields.io/static/v1?style=flat-square&label=Diapos&message=05&color=red&logo=adobe-acrobat-reader)](https://qcbsrworkshops.github.io/workshop05/workshop05-fr/workshop05-fr.pdf)
[![badge](https://img.shields.io/static/v1?style=flat-square&label=script&message=05&color=2a50b8&logo=r)](https://qcbsrworkshops.github.io/workshop05/workshop05-fr/workshop05-fr.R)

Cet atelier vise à vous apprendre les bases de la programmation en R. Vous apprendrez à utiliser des structures de contrôle (boucles `for`, `if`, `while`) afin d'éviter la répétition de code, de faciliter l'organisation et d'effectuer des simulations. Vous apprendrez également à écrire vos propres fonctions et quelques astuces pour programmer plus efficacement. La dernière partie de l'atelier portera sur des librairies de R qui peuvent être très utiles pour les participants, mais qui ne seront pas couvertes ailleurs dans la série d'ateliers en R du CSBQ.

# Links

#### [English](https://qcbsrworkshops.github.io/workshop05/workshop05-en/workshop05-en.html)

#### [Français](https://qcbsrworkshops.github.io/workshop05/workshop05-fr/workshop05-fr.html)

# Developers

1. Set the working directory set to this folder.
2. then use:

``` r
install.packages("remotes")
remotes::install_github("QCBSRworkshops/qcbsRworkshops")
library("qcbsRworkshops")
build_workshops()
```
25 changes: 9 additions & 16 deletions workshop05-en/qcbsR-fonts.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
/* Code font */
@import url('https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic');
@import url('https://cdn.jsdelivr.net/gh/tonsky/FiraCode@1.206/distr/fira_code.css');
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab&display=swap');
/* Title code */
@import url('https://fonts.googleapis.com/css?family=Anton|Bevan|Black+Han+Sans|Luckiest+Guy|Bowlby+One|Lalezar');
/* Body */
@import url('https://fonts.googleapis.com/css?family=Arya');

/* Fira Sans */
@import url('https://fonts.googleapis.com/css?family=Fira+Sans:200,200i 300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&display=swap');

body {
font-family: 'Arya';
}

h1 {
font-family: 'Lalezar', cursive;
font-weight: 400;
}

.maintitle {
font-family: 'Lalezar', cursive;
font-family: 'Fira Sans', sans-serif;
font-weight: 300;
line-height: 1.2;
}

.remark-code, .remark-inline-code {
font-family: 'Ubuntu Mono';
}
font-family: "Fira Code", monospace;
}
8 changes: 4 additions & 4 deletions workshop05-en/qcbsR-macros.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ remark.macros.scale = function (percentage) {
return '<img src="' + url + '" style="width: ' + percentage + '" />';
};

// Image top right
// Rubik's cube image => top right
remark.macros.cube = function () {
var url = "images/rubicub.png";
return '<img style="float: right; margin: 0px 0px 5px 55px; width:150px" src="' + url + '"/>';
return '<img style="float: right; margin: -19px 0px 0px 40px; width:80px" src="' + url + '"/>';
};


// Font-awesome icons (versio 4.7)
remark.macros.faic = function (size = 2) {
var name = this;
Expand All @@ -23,9 +22,10 @@ remark.macros.acic = function (size = 2) {
return '<i class="ai ai-'+ name + ' ai-'+ size + 'x" aria-hidden="true"></i>';
};


// toupper (see https://github.com/gnab/remark/issues/72)
remark.macros.upper = function () {
// `this` is the value in the parenthesis, or undefined if left out
return this.toUpperCase();
};


Loading

0 comments on commit 3bc6577

Please sign in to comment.