2
0
Fork 0
CVE/README.md

44 lines
2.2 KiB
Markdown
Raw Normal View History

2019-12-17 11:07:33 +00:00
# Installation Instructions
The package depends on the `mda` package (see: [mda @ cran.r-project](https://cran.r-project.org/web/packages/mda/index.html). Therefore the first step is to install the `mda` package
```R
2019-12-17 11:07:33 +00:00
install.packages("mda")
```
2019-12-17 11:07:33 +00:00
A release will be available in a few days.
- Linux: release 1 Version 0.2 [CVE_0.2.tar.gz](https://git.art-ist.cc/daniel/CVE/releases/download/0.2/CVE_0.2.tar.gz)
- Windows: release 1 Version 0.2 [CVE_0.2.zip](https://git.art-ist.cc/daniel/CVE/releases/download/0.2/CVE_0.2.zip)
2019-12-17 11:07:33 +00:00
- MacOS: Not available jet (unknown)
2019-12-17 11:07:33 +00:00
Open `R` and then the following:
```R
2019-12-17 11:07:33 +00:00
# addapt to download file.
install.packages("path/to/cve_0.2.<end>", repos = NULL)
2021-03-08 12:31:13 +00:00
library(CVarE) # Test installation.
```
2019-12-17 11:07:33 +00:00
Please consult the man-pages `?install.package` and `?library` for further information.
2019-12-17 11:07:33 +00:00
## Installing Source
2021-03-08 12:31:13 +00:00
Cloning the `CVarE` repository and using `R`'s build and install routines from a terminal.
2019-12-17 11:07:33 +00:00
```bash
git clone https://git.art-ist.cc/daniel/CVE.git # Clone repository
2021-03-08 12:31:13 +00:00
cd CVarE # Go into the repository
R CMD build CVarE # Build package tarbal
R CMD INSTALL CVarE_1.0.tar.gz # Install package
```
### Alternative Installing Source from within R
Using the `devtools` the package can also be directly installed from within `R`
```R
library(devtools) # Load the dectools
2021-03-08 12:31:13 +00:00
setwd('<path_to_repo>/CVarE') # Go into package root
(path <- build(vignettes = FALSE)) # Create source package
install.packages(path, repos = NULL, type = "source") # Install source package
2021-03-08 12:31:13 +00:00
library(CVarE) # Test
```
2019-12-17 11:07:33 +00:00
### Windows / macOS
Installing from source (for any package which contains compiled code, in our case `C`) on Windows and MacOS requires additional tools.
See _R Installation and Administration_ from [r-project manuals](https://cran.r-project.org/manuals.html).
2019-12-17 11:07:33 +00:00
# Repository Structure
2021-03-08 12:31:13 +00:00
The repository is structured in two directories, the `CVarE/` directory which is the `R` package root and `simulations/` where all simulation scripts can be found (and `README.md` which is this).