add: readme - install from source from within R
This commit is contained in:
parent
05c2aea44a
commit
ad7ae9eeec
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue