# Use this to add a copy-code buttong klippy::klippy(position = c('top', 'right'), color = 'darkred')
The package was built under R 4.1 and depends on other packages.
# Install (if not installed) and load necessary packages package.list=c("attempt", "cowplot", "igraph", "ggalluvial","magrittr","vegan", "dplyr","readr","ggplot2","stringr","tibble","tidyr","rlang","bipartite","tidyverse", "Matrix","DT","hablar","devtools") loaded <- package.list %in% .packages() package.list <- package.list[!loaded] installed <- package.list %in% .packages(TRUE) if (!all(installed)) install.packages(package.list[!installed], repos="http://cran.rstudio.com/") devtools::install_github('Ecological-Complexity-Lab/emln', force=T) library(emln) # Install infomapecology devtools::install_github('Ecological-Complexity-Lab/infomap_ecology_package', force=T) library(infomapecology) # Check the version. packageDescription('infomapecology')
We use Infomap version 2.x as a stand-alone file. We are working on integrating Infomap directly intro R.
xcode-select --install
brew install libomp
.Install Infomap via the install_infomap
function in the package as below. Avoid folder names with spaces or non-english lettes.
setwd('where your Infomap file and R script will live') install_infomap() # Check Infomap is running setwd('where your Infomap file and R script now live') check_infomap() # Make sure file can be run correctly. Should return TRUE
or download a binary from here and put the file in the working folder.
Install Infomap via the install_infomap
function in the package as below. Avoid folder names with spaces or non-english lettes.
setwd('where your Infomap file and R script will live') install_infomap() # Check Infomap is running setwd('where your Infomap file and R script now live') check_infomap() # Make sure file can be run correctly. Should return TRUE
or download a binary from here and put the file in the working folder.
Important notes:
The best practice is to compile Infomap under the file name "Infomap" and place it in the same working folder in which the R code is run.
Other ways to install: https://www.mapequation.org/infomap/#Install
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.