1 of 53

Yan Holtz | Paris | October 2023

2 of 53

Hi, I’m Yan 👋

​

I ❤️ Dataviz

3 of 53

​

​

Marine Souchier

github.com/MarineSouchier

This is ChonChon 😀

​

​

4 of 53

5 of 53

6 of 53

R you a developer? 🤔

7 of 53

R you a developer? 🤔

Yes → coding is your work

8 of 53

R you a developer? 🤔

Yes → coding is your work

No → but coding is your work

9 of 53

Improve code and workflow in 3h

10 of 53

Improve code and workflow in 3h

Better code

11 of 53

Improve code and workflow in 3h

Better code

Clean Report

12 of 53

Improve code and workflow in 3h

Better code

Clean Report

Git

GitHub

13 of 53

Your 9 best tips?

14 of 53

#1

15 of 53

#2

16 of 53

#3

Folder structure

Never touch Raw

Never, ever, modify raw data

Create an intermediary step. Store in .R format

Isolated logic, functions

The analysis

17 of 53

#4

No more setwd()

18 of 53

Self contained project with RStudio projects

No more setwd()

#4

19 of 53

{styler}

#5

20 of 53

{styler}

#5

Tidyverse Styleguide

21 of 53

{styler}

#5

22 of 53

functions

#6

23 of 53

functions

#6

24 of 53

Intermediary steps

#7

  • File with isolated functions
  • 1 script per big chunk of work
  • source() them
  • Save intermediary steps at .Rdata format

25 of 53

Renv

Rstudio

#8 #9

26 of 53

{styler}

function()

27 of 53

From Code To Report

28 of 53

29 of 53

30 of 53

31 of 53

title

text

code

result

32 of 53

😳 You are building a Website!

33 of 53

Code folding

Table of content

Dark Mode

Html

Gradient

Parallax

Header & Footer

Horizontal separator

Chapter auto-numbering

Dark mode

Session info

​

So much customization is possible

Figure Caption

Create columns

Tabs

Tables

Cache code

Github link

Template

Compile in website

Hyperlink

Python Support

Logo inclusion

​

34 of 53

35 of 53

36 of 53

Use your theme with custom css

37 of 53

38 of 53

Version control

39 of 53

Git → version control system

Github → cloud-based hosting service

40 of 53

41 of 53

42 of 53

43 of 53

44 of 53

Git and github demo

Never loose changes

Describe your work

Feedback

Contribution

History

Make it a website

45 of 53

Git & Github Demo

46 of 53

What’s the future?

47 of 53

What’s the future?

48 of 53

49 of 53

50 of 53

51 of 53

52 of 53

53 of 53