forked from smith-chem-wisc/MetaNetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
Downloading MetaNetwork
avcarr2 edited this page Nov 27, 2020
·
3 revisions
There are two ways of downloading MetaNetwork:
This method is useful for people with some R experience.
- Download the latest version of R and RStudio
- Download MetaNetwork's GitHub repository as a zip folder.
- Unzip the folder and open either the server.R or app.R file in RStudio.
- (Important!) Set your working directory to the downloaded, unzipped MetaNetwork repository. This can be done with either the RStudio file navigation pane, or you can use the setwd() command.
- Once you have successfully set the working directory, you can run MetaNetwork using either the green Run App button in the top right of the server.R or app.R file. You can also run MetaNetwork from the console by running the following code:
install.packages(shiny) library(shiny) runApp()Note that you only need to run lines 1 and 2 the first time you run open R. After the shiny package is installed and loaded on your device, you only need to run the runApp() function each time you want to use MetaNetwork.
This method requires only copying and pasting the code in this tutorial. It is suitable for people who have never used R before.
- Download the latest version of R.
- Open R.
- MetaNetwork will make a Results folder in R's working directory when you run it. You can choose the working directory in R by going to File>Change dir... and navigating to the directory you want R to write results.
- Run the following code the first time you open R:
install.packages(shiny) - Run this code every time you run MetaNetwork for the first time in a session (i.e. the first time you open R after it's been closed):
library(shiny) - Enter the command
runGitHub("MetaNetwork", "smith-chem-wisc", ref = "main")to start MetaNetwork.