Portfolio & exam {#portfolioexam}

les <- "setup portfolio"
knitr::opts_chunk$set(echo = TRUE)

Plagiarism and copying work of others

It is not allowed to hand in a pre-existing analysis as your own work. It is allowed to let yourself be inspired by existing work and copy a few lines of code from pre-existing work, as long as you provide credit to the work you are using or changing. Pay respect to the associated license if present. It is not allowed to let somebody else create your portfolio for you. All suspects or assessments of fraude or plagiarism will be reported to the Examcommittee of the Institute for Life Sciences & Chemistry

Details on exam for this course

As explained, the course will be completed with a portfolio. The portfolio needs to be hosted on a publicly accessible Gihub pages website. During a live assessment halfway trough the course, the teacher, fellow students and you will go over the portfolio together. The idea is that you provide clarifications on any questions that might arise from your portfolio. You will have to process all the feedback you receive and include the alterations in your final portfolio.

Assessment

An assessment will be planned for you to be able to elaborate on your final portfolio. Two skills are hard to show in a portfolio, and will have assessments during class. You need to pass these partial assessments and show your skill in the final portfolio.

Getting help

We are here to help you pass this course! If you need assistance on getting your portfolio in order, please let us know. We do not have all the answers though, sometimes we will merely be able to point you in a solutions direction. Make sure to look around on the internet, usually other people have encountered very similar problems and have shared how they solved them. Or they were solved on a forum and you can look at it for inspiration.

portfolio requirements

Your portfolio needs te be something that you would happily send to your current/prospective internship supervisor or boss, and linked to from LinkedIn. Something really showcasing your skills in data science for biology.

Let bij het maken van je portfolio in het algemeen op:

Lijstje criteria portfolio-opdrachten:

Setting up a bookdown project and publishing it online as course portfolio {#bookdownportfolio}

The part below will show you how to:

  1. Setup github pages
  2. Create a bookdown project
  3. Render a bookdown project to a local website
  4. Add the rendered site to your github pages

Github pages

Each account on github can be associated to one or multiple websites that are hosted on Github.com. To setup a website on Github (also called github-pages or gh-pages), we need to create a repository with a special name. For this course we will require you to upload results from the exercises and assignments results to you personal github pages. This is a hard requirement for passing this course. If you have no or an empty portfolio, you cannot pass this course

##### Exercise setup portfolio 1. Execute the steps explained [here](https://guides.github.com/features/pages/) to setup a github-pages repository called `workflows-portfolio` 1. Send the url to your public portfolio address to the teachers by personal chat / email.

Bookdown

The {bookdown} R package is basically a collection of RMarkdown files, collated into a website with nice formatting and the possibility to cross reference and add citations and visualizations. The author of the bookdown is also the main author of {knitr}.

A simple bookdown example

To start with bookdown, there is a good and free resource available.

Transform your current portfolio project to a bookdown site

Over the course you will collect several Rmd files for completing the exercises and assignments. If everything went well, you have these files collected in your portfolio RStudio project, linked to a Github repo. To start building your bookdown project, use the minimal example you have seen above. Start by rendering your project using bookdown::render(). To the very least you should have an index.html file that contains the yaml definitions for your bookdown project. You can arrange the chapters by using an index in every Rmd file. Use indexes like 001_<file_name>.Rmd. When you want to add a chapter in between two chapters, this makes it easier. to achieve this.

Render the book locally

When you have build your index.Rmd file and have collected all files in the root of your project, be sure all depending data, scripts and other files such as images etc. are also present in the project. Use the guerrilla analytics logic to setup the project structure. Set the option new_session: yes in your _bookdown.yml or index.Rmd file. This prevent problems down the line. Render the book until all errors are solved. You can debud each file and error by looking at the line numbers where the rendering is causing problems.

Hosting the bookdown project in your github pages

IMPORTANT NOTE ON CONFIDENTIALITY

When hosting you portfolio on a public web address, please make sure that there is no confidential information visible in your project. Data that falls under a non-disclosure agreement for example from your projecticum may not be shared. Also, be sure not to publish any personal secrets such as passwords and tokens, inside a github repo or webpage.

Once you have sucefully rendered your bookdown to a full website, hosting can be achived by copying all html files to your Github-pages. The easiest way is to clone your github pages repo and add, commit and push all html files to your github pages repo. The website will be automatically updated after some time. You can also setup a theme for your github pages. See here for more info.

Trouble with figures not showing up? Try googling ".nojekyll file figures".

For a complete manual on working with github pages, see the gh-pages docs

If you want to go for a full continuous integration workflow (which is highly recommended), you can follow these steps in this blog


CC BY-NC-SA 4.0 This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Unless it was borrowed (there will be a link), in which case, please use their license.



DataScienceILC/tlsc-dsfb26v-20_workflows documentation built on July 4, 2025, 5:49 a.m.