2
0
Fork 0

add: readme - install from source from within R

This commit is contained in:
Daniel Kapla 2020-09-18 18:07:13 +02:00
parent 05c2aea44a
commit ad7ae9eeec
1 changed files with 9 additions and 0 deletions

View File

@ -25,6 +25,15 @@ cd CVE # Go into the repository
R CMD build CVE # Build package tarbal
R CMD INSTALL CVE_0.2.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
setwd('<path_to_repo>/CVE') # Go into package root
(path <- build(vignettes = FALSE)) # Create source package
install.packages(path, repos = NULL, type = "source") # Install source package
library(CVE) # Test
```
### Windows / macOS
Installing from source (for any package which contains compiled code, in our case `C`) on Windows and MacOS requires additional tools.