create the project after it gets approved - arborzhang/ukb-tracking GitHub Wiki

These are the steps to setup the project after it gets approved (adjusted from the website: https://steno-aarhus.github.io/ukbAid/initial-setup.html)

The following steps are performed at your own local computer.

Step 1: Install the pak and ukbAid package

install.packages("pak")
pak::pak("steno-aarhus/ukbAid")

#computer has Git configured properly, should get an output showing your user.email and user.name. ukbAid::setup_git_config("name", "email")

After this, you will get personal access token: usethis::create_github_token() ##REMEMBER TO SAVE THE TOKEN

remember to save the token Then run the code:

gitcreds::gitcreds_set()

Step 2: clone the project repository.

#download (“clone” in Git language) the project repository, then the project will be created. You could see Rproj file, data, data-raw, and doc so that the project starts up in RStudio.

usethis::create_from_github("steno-aarhus/project_name")

Step 3: You can select variables in this step.

First go to the project folder, and open data-raw, chose variables at project-variables After selecting variables, go to commit and make commit message, commit and push Remember to check github account whether the variable list has been updated.

Bingo!