cito: Building and Training Neural Networks

The 'cito' package provides a user-friendly interface for training and interpreting deep neural networks (DNN). 'cito' simplifies the fitting of DNNs by supporting the familiar formula syntax, hyperparameter tuning under cross-validation, and helps to detect and handle convergence problems. DNNs can be trained on CPU, GPU and MacOS GPUs. In addition, 'cito' has many downstream functionalities such as various explainable AI (xAI) metrics (e.g. variable importance, partial dependence plots, accumulated local effect plots, and effect estimates) to interpret trained DNNs. 'cito' optionally provides confidence intervals (and p-values) for all xAI metrics and predictions. At the same time, 'cito' is computationally efficient because it is based on the deep learning framework 'torch'. The 'torch' package is native to R, so no Python installation or other API is required for this package.

Version: 1.2
Depends: R (≥ 4.1.0)
Imports: Rcpp, coro, jpeg, png, checkmate, torch, gridExtra, parabar, abind, progress, cli, torchvision, tibble, lme4, rlang, reformulas
LinkingTo: Rcpp
Suggests: spelling, rmarkdown, testthat, plotly, ggraph, igraph, stats, ggplot2, knitr, tiff, raster
Published: 2026-11-22
DOI: 10.32614/CRAN.package.cito
Author: Christian Amesöder [aut], Maximilian Pichler ORCID iD [aut, cre], Florian Hartig ORCID iD [ctb], Armin Schenk [ctb]
Maintainer: Maximilian Pichler <maximilian.pichler at biologie.uni-regensburg.de>
BugReports: https://github.com/citoverse/cito/issues
License: GPL (≥ 3)
URL: https://citoverse.github.io/cito/
NeedsCompilation: yes
SystemRequirements: libjpeg, libpng, libtiff (all optional; without them cito falls back to the R image readers, except raster_patches(), which requires libtiff)
Language: en-US
Citation: cito citation info
Materials: README, NEWS
CRAN checks: cito results

Documentation:

Reference manual: cito.html , cito.pdf
Vignettes: Introduction to cito (source)
Training neural networks (source)
Example: (Multi-) Species distribution models with cito (source)
Advanced: Custom loss functions and prediction intervals (source)
Convolutional neural networks and multi-modal neural networks (source)

Downloads:

Package source: cito_1.2.tar.gz
Windows binaries: r-devel: cito_1.1.zip, r-release: cito_1.1.zip, r-oldrel: cito_1.1.zip
macOS binaries: r-release (arm64): cito_1.1.tgz, r-oldrel (arm64): cito_1.1.tgz, r-release (x86_64): cito_1.1.tgz, r-oldrel (x86_64): cito_1.1.tgz
Old sources: cito archive

Reverse dependencies:

Reverse suggests: biomod2, caretSDM

Linking:

Please use the canonical form https://CRAN.R-project.org/package=cito to link to this page.