5.1 Project setup

5.1.1 Video

5.1.2 Slides

Slides

5.1.3 Exercises

NB: You can check the slides for more detail.

  • The video and slides ask you to use a tool called cookiecutter to install a project structure in your system. However, we’re going to skip that and go straight to the ‘backup’ instructions! It will be more efficient for us during the online version of the course.

  • Use the instructions on this slide to clone a template repository of a project folder structure to your computer. Remember to also follow the instructions on removing the .git folder that is downloaded.

  • R users can also use the following code:

# install.packages("usethis")

usethis::use_zip("https://github.com/bvreede/good-enough-project-template/archive/refs/heads/master.zip",
                 destdir = getwd())
  • Place your project files in the right folder.

  • Adjust paths in your code, and be sure to use relative paths!

  • Does your code run in the new folder structure?