-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
141 lines (81 loc) · 4.07 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(collapse = TRUE,
comment = "#>",
fig.path = "man/figures/",
out.width = "100%")
```
paper-template-repo <img src="man/figures/compendium-sticker.png" align="right" style="float:right; height:120px;"/>
=========================================================
<!-- badges: start -->
<!-- badges: end -->
# To use the template
Click the green "use this template" button in the top right of this GitHub page.
In your new project:
1. Use Ctrl-Shift-F to find all uses of PackageName and replace it with the name of the repo you created. If you are not part of LandSciTech first replace LandSciTech/PackageName with your GitHub user name and then replace PackageName.
1. Rename the .Rproj file to have the same name as the repo.
1. Fill in metadata in the DESCRIPTION
1. update the README.Rmd and knit it (and delete this text).
<p align="left">
• <a href="#overview">Overview</a><br>
• <a href="#features">Features</a><br>
• <a href="#content">Content</a><br>
• <a href="#installation">Installation</a><br>
• <a href="#usage">Usage</a><br>
• <a href="#citation">Citation</a><br>
• <a href="#contributing">Contributing</a><br>
• <a href="#acknowledgments">Acknowledgments</a><br>
• <a href="#references">References</a>
</p>
## Overview
This research compendium... **{{ DESCRIBE YOUR PROJECT }}**
## Features
The main purpose of this compendium is to... **{{ DESCRIBE THE MAIN FEATURES }}**
## Content
This repository is structured as follows:
- [`DESCRIPTION`](https://github.com/LandSciTech/PackageName/tree/main/DESCRIPTION):
contains project metadata (authors, date, dependencies, etc.)
- [`make.R`](https://github.com/LandSciTech/PackageName/tree/main/make.R):
main R script to run the entire project
- [`R/`](https://github.com/LandSciTech/PackageName/tree/main/R):
contains R functions developed for this project
- [`analyses/`](https://github.com/LandSciTech/PackageName/tree/main/analyses):
contains source code for the paper and scripts that are part of the analysis but not run in the paper. Also includes templates that are used to render the paper.
- [`data/`](https://github.com/LandSciTech/PackageName/tree/main/data):
contains data needed to run the project. raw-data should contain unmodified source data, derived-data should contain modified versions of the data
- [`figures/`](https://github.com/LandSciTech/PackageName/tree/main/figures):
contains figure files including those generated by rendering the paper
## Installation
To install this compendium:
- [Fork](https://docs.github.com/en/get-started/quickstart/contributing-to-projects)
this repository using the GitHub interface.
- [Clone](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository)
your fork using `git clone fork-url` (replace `fork-url` by the URL of your fork).
Alternatively, open [RStudio IDE](https://posit.co/products/open-source/rstudio/)
and create a New Project from Version Control.
## Usage
Launch the [`make.R`](https://github.com/LandSciTech/PackageName/tree/main/make.R)
file with:
```{r eval=FALSE}
source("make.R")
```
**Notes**
- All required packages listed in the `DESCRIPTION` file will be installed (if necessary)
- All required packages and R functions will be loaded
- Some analyses listed in the `make.R` might take time
## Citation
Please use the following citation:
> **{{ ADD A CITATION }}**
## Contributing
All types of contributions are encouraged and valued. For more information,
check out our [Contributor Guidelines](https://github.com/LandSciTech/PackageName/blob/main/CONTRIBUTING.md).
Please note that this project is released with a
[Contributor Code of Conduct](https://contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html).
By contributing to this project, you agree to abide by its terms.
## Acknowledgments
**{{ OPTIONAL SECTION }}**
## References
**{{ OPTIONAL SECTION }}**