Slide 1

Slide 1 text

R in Food Sensory and Blogging with R Muhammad Aswan Syahputra November 15, 2018

Slide 2

Slide 2 text

dplyr::glimpse(aswan) Founder of Expertise in sensory science and consumer studies Education: Master in Sensory Science, Wageningen University and Research, The Netherlands Bachelor in Food Technology, Universitas Brawijaya, Indonesia Sensolution.ID Telegram: @aswansyahputra [email protected]

Slide 3

Slide 3 text

dplyr::summarise(me_with_r)

Slide 4

Slide 4 text

Studying consumer perception and preference

Slide 5

Slide 5 text

Linking flavour/preference with food properties

Slide 6

Slide 6 text

Optimisation of food processing and production

Slide 7

Slide 7 text

Observation of oral processing during eating

Slide 8

Slide 8 text

Developing SenseHub for sensory analyses

Slide 9

Slide 9 text

Blogging about R using R

Slide 10

Slide 10 text

Why should we? Don’t shoot yourself in the foot! Code and document your works Don’t let your code scattered and stayed only in your computer Be efficent! Code, document, and publish in one workflow Is your code and approach good enough? Get some feedbacks! Help the others! Enrich R resources in Bahasa Indonesia

Slide 11

Slide 11 text

my_blog <- r + hugo + git R packages: rmarkdown, blogdown IDE RStudio Hugo Using R: blogdown::install_hugo() GNU/Linux: sudo snap install hugo --classic Other: consult Git GitHub account here

Slide 12

Slide 12 text

Steps: Generation File - New Project - New Directory - Website using blogdown Choose theme at . Filled out ‘Hugo theme’ (e.g. ‘nathancday/min_night’) Copy archetypes in themes/the-theme into project working directory (recommended!) blogdown::build_site() / blogdown::serve_site() (Addins - Serve Site) themes.gohugo.io

Slide 13

Slide 13 text

Steps: Deployment In R : file.create("public/.nojekyll") and blogdown::hugo_build Create GitHub repository ‘username.github.io’ In Terminal: cd public git init git remote add origin https://github.com/user/repo.git git add . git commit -m 'init'

Slide 14

Slide 14 text

What next? Config and write! Configure the ‘config.toml’ Add new post: Addins - New Post Inspect it locally: blogdown::serve_site() If OK, in R blogdown::hugo_build then publish it: cd public git add . git commit -m 'added new content' git push origin master

Slide 15

Slide 15 text

Recommendations Hosting on for automatic deployment Use your custom domain Netlify

Slide 16

Slide 16 text

Getting helps Blogdown documentation Hugo Indonesia on Telegram

Slide 17

Slide 17 text

Thanks!