Table of Contents
Platform-specific instructions on installing DaVinci #
Linux (RHEL) #
- Install the latest version of R (>=4.0.0)
- Install
remotesin R. - Run the code below in R with
remotesinstalled.remotes::install_github("FunctionLab/DaVinci")
You may need to yum install the following packages depending on your setup:
gitblas,lapack,blas-devel,lapack-develcmakeudunits2-developenssl-develgdal-devel,proj-devel,geos-dev
Windows #
- Install the latest version of R (>=4.0.0)
- Install Rtools from
https://cran.r-project.org/bin/windows/Rtools/. Be sure to select a version that matches your installed R version. - Create a text file named
.Renvironunder the folderThis PC/Documents/with the following content.
PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"
If Rtools installation is successful,RTOOLS40_HOMEenvironment variable should have been automatically set up. The variable name may change as you install a different version of Rtools. - Install
remotesin R. - Run the code below in R with
remotesinstalled.remotes::install_github("FunctionLab/DaVinci")
Mac (ARM chip) #
- Install the latest version of R (>=4.0.0)
- Install
Xcode developer toolsandGNU Fortran compilerfollowing the instructions. - Install
remotesin R. - Run the code below in R with
remotesinstalled.remotes::install_github("FunctionLab/DaVinci")
If you want to use DaVinci without installation #
You can download the the repo to your working_directory and use the following code block to inlcude all DaVinci functions in your working environment.
library(Rcpp)
library(mclust)
script.path <- "working_directory/R/"
script.list <- list.files(script.path)
script.list <- setdiff(script.list, c("DAVINCHI.R", "import.R", "RcppExports.R"))
script.list <- paste0(script.path, script.list)
sapply(script.list, source)
sourceCpp("working_directory/src/util.cpp")