Performs a pre-flight check of all dependencies required to install and run cuplyr. Reports status of NVIDIA driver, CUDA toolkit, libcudf, R version, and required R packages.
Usage
check_deps(format = c("text", "json"), verbose = FALSE)Value
Invisibly returns a list with:
- ok
Logical:
TRUEif all required checks pass- checks
Named list of individual check results, each with
ok,value, andmessagefields
Details
The following checks are performed:
NVIDIA Driver: Verifies
nvidia-smiis available and reports the driver version, read withnvidia-smi --query-gpu=driver_versionand, failing that, from theDriver Version:orKMD Version:headerCUDA Toolkit: Looks for
nvccinCUDA_HOME,CONDA_PREFIX, the environment of the libcudf that cuplyr has loaded, the pixi environment (PIXI_PROJECT_ROOT, or.pixiin the working directory), the system CUDA directories andPATH, in that order. Validates CUDA >= 12.2 and reports the CUDA versionlibcudf: Reports the libcudf that cuplyr has loaded, if any. Otherwise looks for cudf headers and
libcudf.sounderCUDF_HOME,CONDA_PREFIX, the pixi environment (PIXI_PROJECT_ROOT, or.pixiin the working directory) and standard paths. ACUDF_HOMEorCONDA_PREFIXthat points to a missing directory is named in the message but does not fail the check by itself. The check reports the libcudf version it finds (fromcudf/version_config.hpp) and fails for a libcudf older than 26.02; a version it can't read is not a failure.R Version: Checks R >= 4.3.0
R Packages: Verifies required R packages are installed
GPU Access: Tests if a GPU device is accessible (if cuplyr is already installed)
See also
verify_installation() for post-install verification,
diagnostics() for full system diagnostics
Examples
# Human-readable output
check_deps()
#> cuplyr dependency check
#> --------------------------------------------------
#> ✔ NVIDIA Driver: Driver version 615.78.08
#> ✔ CUDA Toolkit: CUDA 13.4 at /opt/cuda
#> ✔ libcudf: libcudf loaded by cuplyr from /home/theo/cuplr/.pixi/envs/default/lib/libcudf.so (libcudf 26.10.2). Note: CUDF_HOME is set to '/home/theo/cuplr/rapids-dev/lib/python3.12/site-packages/libcudf', which does not exist.
#> ✔ R Version: R 4.6.1
#> ✔ R Packages: All 7 required packages installed
#> ✔ GPU Access: GPU accessible: NVIDIA GeForce RTX 5070
#> --------------------------------------------------
#> All checks passed.
#> Next step: ./configure && R CMD INSTALL .
# Machine-readable JSON
check_deps(format = "json")
#> {
#> "ok": true,
#> "checks": {
#> "nvidia_driver": {"ok": true, "value": "615.78.08", "message": "Driver version 615.78.08"},
#> "cuda_toolkit": {"ok": true, "value": "13.4", "message": "CUDA 13.4 at /opt/cuda"},
#> "libcudf": {"ok": true, "value": "/home/theo/cuplr/.pixi/envs/default", "message": "libcudf loaded by cuplyr from /home/theo/cuplr/.pixi/envs/default/lib/libcudf.so (libcudf 26.10.2). Note: CUDF_HOME is set to '/home/theo/cuplr/rapids-dev/lib/python3.12/site-packages/libcudf', which does not exist."},
#> "r_version": {"ok": true, "value": "4.6.1", "message": "R 4.6.1"},
#> "r_packages": {"ok": true, "value": "Rcpp, dplyr, rlang, vctrs, cli, tidyselect, tibble", "message": "All 7 required packages installed"},
#> "gpu_access": {"ok": true, "value": "NVIDIA GeForce RTX 5070", "message": "GPU accessible: NVIDIA GeForce RTX 5070"}
#> }
#> }
# Programmatic use
result <- check_deps()
#> cuplyr dependency check
#> --------------------------------------------------
#> ✔ NVIDIA Driver: Driver version 615.78.08
#> ✔ CUDA Toolkit: CUDA 13.4 at /opt/cuda
#> ✔ libcudf: libcudf loaded by cuplyr from /home/theo/cuplr/.pixi/envs/default/lib/libcudf.so (libcudf 26.10.2). Note: CUDF_HOME is set to '/home/theo/cuplr/rapids-dev/lib/python3.12/site-packages/libcudf', which does not exist.
#> ✔ R Version: R 4.6.1
#> ✔ R Packages: All 7 required packages installed
#> ✔ GPU Access: GPU accessible: NVIDIA GeForce RTX 5070
#> --------------------------------------------------
#> All checks passed.
#> Next step: ./configure && R CMD INSTALL .
if (!result$ok) {
message("Some checks failed. See result$checks for details.")
}
