Sub-repositories | Description |
---|---|
DataFiles | Data files such as .csv, .xlsx, .txt are stored in this folder. |
Pmodels | All model codes are stored in this folder. |
RWorkSpaces | R workspaces required to run the model. |
OutputFiles | Contains the output data from the P models. |
A GitHub account is required to run the model. The details of creating a new GitHub account can be easily found over the internet.
Install Git, R, and RStudio from respective websites.
To link Git to RStudio, open RStudio and go to Tools > Global Options… click on Git/SVN. Check Enable version control interface for RStudio projects. Set the path to the Git executable that was installed. Click OK and restart Rstudio. If done correctly, the Git icon will appear on the RStudio toolbar. Next, configure Git and set your user name and email (the email address you used to register on GitHub). You can directly open the Git prompt from within RStudio. User name and email needs to be set only once. Go to Tools > Shell to open the Git Shell to tell Git your username and GitHub email.
Step 1 : In the top-right corner of this page, click Fork. Under Owner, select the dropdown menu and click an owner for the forked repository. By default, forks are named the same as their upstream repositories. Optionally, to further distinguish your fork, in the Repository name field, type a name. Click Create fork. A forked repository will be created in your GitHub account.
Step 2: Click on Code icon in the forked repository to copy the HTTPS url. The HTTPS url will be something like https://github.com/SmitomB/Internal_Phosphorus_Loading_Model.git.
Step 3 : Open RStudio and click New Project... from File. Select Version Control and Git. In the Repository URL, enter the HTTPS URL of the forked repository from your GitHUb account. Next, enter a Project directory name and select the directory in which the you want to store the R project. Select Create Project
Step 4 : Run the codes stored in JLPMv016p001.Rmd to JLPMv016p010.Rmd in Pmodels repository.