Table of Contents
- Install DaVinci - {:.} If the installation is not successful
- Platform-specific instructions on installing R - {:.} Linux - {:.} Windows - {:.} Mac (ARM chip)
Install DaVinci #
To install the R package from GitHub, you just need to run through the following code block in R.
remotes::install_github("FunctionLab/DaVinci")
If the installation is not successful #
You can download the the repo to 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")
Platform-specific instructions on installing R #
Linux #
- Install the latest version of R (>=4.0.0)
- Install
remotesin R. - Install
DaVincifromGitHub.
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. - Install
DaVincifromGitHub.
Mac (ARM chip) #
To be updated.