-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1_installing.Rmd
41 lines (27 loc) · 1.72 KB
/
1_installing.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
# Installing cerUB {#install}
There are two options for installing the *cerUB* package:
a. Downloading the latest release version from [Zenodo.org](zenodo.org) and installing it in [RStudio](rstudio.com) (Tools > Install Packages... > Install from: Package Archive File).
> Angourakis, Andreas, & Martínez Ferreras, Verònica. (2017, September 23). cerUB - Protocols for exploring archaeometric data (R package). Zenodo. http://doi.org/10.5281/zenodo.975451
b. Installing the latest development version directly from [GitHub](github.com) ([Andros-Spica/cerUB](https://github.com/Andros-Spica/cerUB)), using the *devtools* package:
```{r, eval=FALSE}
# this will install devtools package, if not installed already
if (!require("devtools"))
install.packages("devtools")
devtools::install_github("Andros-Spica/cerUB")
```
```{r, echo=FALSE, message=FALSE, warning=FALSE}
# this will install devtools package, if not installed already
if (!require("devtools"))
install.packages("devtools")
if (!require("cerUB"))
devtools::install_github("Andros-Spica/cerUB")
if (!require("biplot2d3d"))
devtools::install_github("Andros-Spica/biplot2d3d")
```
The second option is recommended, because it is a faster way to install and update packages that are not in [CRAN](cran.r-project.org).
The same options are available for installing the *biplot2d3d* package, which we use here to plot protocols results.
> Andreas Angourakis. (2017, September 20). biplot2d3d - an R package for generating highly-customizable biplots. Zenodo. http://doi.org/10.5281/zenodo.897603
```{r, eval=FALSE}
devtools::install_github("Andros-Spica/biplot2d3d")
```
Any other package required by these two packages (*ade4*, *rgl*, etc.) should be automatically installed.