Installation of package leidenase in R

Creation date: 4/28/2025 10:30 AM    Updated: 4/28/2025 10:30 AM   igraph leidenbase r
R version 4.4.1:


qrsh -l h_data=10G
module load gcc/10.2.0; module load R/4.4.1;module load glpk
#check CRAN for more recent versions of the package:
tar xvf leidenbase_0.1.35.tar.gz

cd leidenbase; patch < /u/local/apps/leidenbase/HOW_TO_INSTALL_IN_R/configure.patch
cd ..
if [ ! -d $R_LIBS_USER ] ; then mkdir -p $R_LIBS_USER ; fi  # assuming sh/bash-based shell
# perform installation of dependencies (includes igraph that can be installed via):
https://support.idre.ucla.edu/helpdesk/KB/View/76902445-installation-of-package-igraph-in-r
# now install patched version of leidenbase:
R CMD INSTALL leidenbase
# you can then remove the leidenbase directory