steno-aarhus / legliv

UK Biobank Project
0 stars 0 forks source link

TODO: Write your project abbreviated title and full title here.

With this project, We will statistically model replacement of red meat consumption with legumes in relation to incident primary liver cancer and assess whether the association is mediated through non-alcoholic fatty liver disease (NAFLD).

Installing and setting up the project

If dependencies have been managed by using usethis::use_package("packagename") through the DESCRIPTION file, installing dependencies is as easy as opening the .Rproj file and running this command in the console:

pak::pak()

To build the reports and papers to PDF, you'll need to install TinyTeX:

tinytex::install_tinytex()

Steps to download the data and reproduce the analysis

The data-raw/ folder contains the scripts to select, process, and prepare the data on the RAP to eventually be downloaded.

The steps to take to select the variables you want, create the CSV file on the RAP and download to your project on RAP. The order is:

  1. Select the variables you want in data-raw/project-variables.csv.
  2. Follow the instructions in the data-raw/create-data.R script and run it to create the CSV file on the RAP server.
  3. Run targets::tar_make() to download the CSV file to data/ and get the project analysis to the current state.

Brief description of folder and file contents

The following folders contain: