knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Installation of the package

You can install bascule from GitHub using devtools.

devtools::install_github("caravagnalab/bascule")

Load the package.

library(bascule) 

Python dependencies installation

When the package is loaded, you might execute the configure_environment() function to automatically check whether:

reticulate::use_condaenv("env-name", required=TRUE)
load_conda_env(envname="env-name")

Functions to manually configure an environment

The function configure_environment() can be used interactively to manually configure an existing environment, or to create one from scratch.

configure_environment(env_name="bascule-env", use_default=F)

The function will first check if a Anaconda or Miniconda installation is available, otherwise it will prompt a Miniconda installation. The input name of the environment is either the name of an existing environment or the name of the environment to be created. The environment will be loaded or created, and the required Python dependencies will be installed.

Check the loaded Python version and environment

The package provides also a set of helper functions to check if an environment is loaded.



caravagnalab/basilica documentation built on June 11, 2025, 10:18 p.m.