Note: For general development guidelines, code style conventions, and AI agent instructions, see
AGENTS.mdin the repository root.
Project Overview
igraph/rigraph is an R package for network analysis and graph theory with a C/C++ backend.
Common Commands for Copilot Chat
- Load for development:
pkgload::load_all() - Run tests:
testthat::test_local(reporter = "check") - Run tests for a single file:
testthat::test_local(filter = "foo", reporter = "check") - Format code:
air format . - Update documentation:
devtools::document() - Build package:
devtools::build() - Check package:
devtools::check()
Key Conventions
- Use
snake_casefor functions and arguments - Follow tidyverse style guide
- Use roxygen2 with Markdown for documentation
- Run
air format .before committing - Add tests for all new functionality
- Use explicit package prefixes (e.g.,
withr::local_db_connection())
