Setup - EBI-Metabolights/SAFERnmr GitHub Wiki

Setup:

Note: You can skip to (4) if you've already done (1-3) before on your machine.

  1. Ensure you have R and Rstudio installed - shiny needs these to run. Note: Rstudio updates can trigger a version change in R. The latest version of R I’ve tested on is 4.2.2 (2022-10-31).

  2. Clone or download the SAFER github repo from the main branch.

    • Need help?
    • most functions won't be needed for this demo, but it comes as a package
    • keep track of where the clone lives on your machine (we'll refer to it as path_to_SAFER_repo_clone)
  3. Start Rstudio and install devtools:

    In the command window, enter:

    install.packages('devtools')
    

    Note: you can skip this if you already have devtools installed

  4. Run this to build the package locally (basically like using a library() call):

    devtools::document('path_to_SAFER_repo_clone') # e.g. '/Users/mjudge/Documents/GitHub/icl_nmr_R'
    

    Note: you'll have to do this every time your restart R or SAFER functions won't be available

Now you should be able to use the SAFER functions and pipeline!