Skip to content

Commit fd1fd8f

Browse files
authored
Update installation instructions for spectratrait package
1 parent a9ee824 commit fd1fd8f

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,32 @@ Or 2) you can also run or source the "install_dependencies.R" script located in
3838

3939
Finally, to complete the installation you will also need to install the spectratrait package itself. You can do this by copying and pasting the command below into your R or RStudio (preferred) terminal.
4040

41+
#### To install the main (default) branch version
4142
``` r
42-
# to install the main (default) branch version
4343
devtools::install_github(repo = "plantphys/spectratrait", dependencies=TRUE)
44+
```
45+
<br>
4446

45-
# to install the main branch version - with Vignettes (though slower)
47+
#### To install the main branch version - with Vignettes (though slower)
48+
``` r
4649
devtools::install_github(repo = "plantphys/spectratrait", dependencies=TRUE, build_vignettes = TRUE)
50+
```
51+
<br>
4752

48-
# to install a specific release, for example release 1.0.5
53+
#### To install a specific release, for example release 1.0.5
54+
``` r
4955
devtools::install_github(repo = "plantphys/spectratrait@v1.0.5", dependencies=TRUE)
56+
```
57+
58+
<br>
5059

51-
# or a specific branch, e.g. a branch named devbranch
60+
#### Or install a specific branch, e.g. a branch named devbranch
61+
``` r
5262
devtools::install_github(repo = "plantphys/spectratrait", ref = "devbranch", dependencies=TRUE)
5363
```
5464

65+
<br>
66+
5567
## Contains:
5668
1. Core package functions are located in the in the main "R" folder
5769
2. inst/scripts contains example PLSR workflows for fitting example leaf and canopy spectra-trait PLSR models for different leaf traits, including LMA and foliar nitrogen

0 commit comments

Comments
 (0)