Git Product home page Git Product logo

vc-workshop's Introduction

Respository vc-workshop

Version control for scientific workflows workshop at Division of Insurance Medicine, Karolinska Institutet

License

This repository is licensed under the Creative Commons Attribution 4.0 International license. Please see the license file.

Attributions

This project makes use of the rproj-template Github template created by Daniel Morillo and licensed under the Creative Commons Attribution 4.0 International license.

Dataset nwtco from the R survival package v3.5-5, originally from:

Breslow, N. E., and N. Chatterjee. 1999. “Design and Analysis of Two-Phase Studies with Binary Outcome Applied to Wilms Tumour Prognosis.” Journal of the Royal Statistical Society: Series C (Applied Statistics) 48 (4): 457–68. https://doi.org/10.1111/1467-9876.00165.

Adapted from the nwtco help page of the R survival package v3.5-5.

Pictures

Origin of all the image files attributed in the corresponding slides in output/slide-deck.qmd.

Project installation

Software components

Installing the project locally

This project is hosted as a GitHub repository. It can be cloned as a local Git repository following these instructions (steps 2 through 7). Note that this will create a local copy of (‘clone’) the GitHub repository as an Rstudio project in the folder specified. The URL that must be entered into the Repository URL text box is:

https://github.com/DaniMori/vc-workshop.git

After cloning the repository, the Rstudio project will open automatically in the Rstudio IDE. If it doesn’t, or you want to return later to the project in Rstudio, you can do so by double clicking on the file rstudio_project.Rproj that has been created in the project folder when cloning the repository.

NOTE: It is common practice to avoid using and versioning .Rprofile files. However, this project uses package renv to create a reproducible environment, which needs the .Rprofile file that lives in the root directory of the project. Please DO NOT delete or edit this file; it will install and activate the renv package and make it ready for restoring the environment.

Restoring the environment

The reproducible environment created by renv must be restored to install all the packages this project needs to be built properly. In order to this, you will need to install package renv first:

install.packages("renv")

Once it is successfully installed, use the “renv” -> “Restore library…” button in Rstudio’s “Packages” tab to restore the environment. Alternatively, you can type in the console:

renv::restore()

Repository structure

The file structure of this repository is as follows:

vc-workshop
|
|--- dat          (To store input datasets; must NEVER be checked-in to Github)
|
|--- doc          (To store important documentation of the project)
|    |
|    |--- minutes (To store meeting minutes)
|
|--- notebooks    (Notebooks to explore data and test processes live here)
|
|--- output       (Processing outputs; files must be individually "checked-in"
|                 when necessary)
|
|--- R            (R functions created for this project live here)
|
|--- renv         (System library necesssary for `renv` to work. DON'T TOUCH)
|
|--- src          (Source scripts that implement the main processes)
|
|--- www          (Project assets, e.g., images, bibliography files, etc.)

Use the folders as indicated to store the different files and generate the outputs of the processes.

vc-workshop's People

Contributors

danimori avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.