R Installation
R (http://www.r-project.org) is a language and environment for statistical computing and graphics. We assume R (version 4.0.0 or higher) has been installed in your local machine. The latest version can be installed following instructions below for different platforms (Windows, Mac, and Linux).
Quick link for Windows: Download R for Windows.
Quick link for Mac: Download R for Mac OS X 11.
Below are shell command lines in Terminal (for Linux):
MNet Installation
MNet requires R version 4.0.0 or higher, please see https://cran.r-project.org.
MNet is available for all operating systems and can be installed via the Github.
if(!require(BiocManager)){
install.packages("BiocManager")
}
if (!require(remotes)) {
BiocManager::install("remotes", dependencies=T)
}
if (!require(devtools)) {
BiocManager::install("devtools", dependencies=T)
}
BiocManager::install("hfang-bristol/dnet", dependencies=T)
BiocManager::install("tuantuangui/MNet", dependencies=T)
#If the installation of MNet is failed, please install the failed dependency package again, such as if the ERROR is "ERROR: dependencies ‘xxx’ is not available for package ‘MNet’", please install the 'xxx' package again.
Check the package ‘MNet’ successfully installed
library(help=MNet)
Frequently Asked Questions
- Can not install dependent packages dnet
If the ERROR is “Error: Failed to install ‘dnet’ from GitHub: Could not resolve host: api.github.com”, please try it again.
BiocManager::install("hfang-bristol/dnet", dependencies=T)