From ad7ae9eeecd5f2ab7a9f838991107d45753fdc48 Mon Sep 17 00:00:00 2001 From: daniel Date: Fri, 18 Sep 2020 18:07:13 +0200 Subject: [PATCH] add: readme - install from source from within R --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 8535433..a9ae622 100644 --- a/README.md +++ b/README.md @@ -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('/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.