Skip to content

Commit 9f4a8af

Browse files
committed
Update GEMINI.md
1 parent f867e1f commit 9f4a8af

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

GEMINI.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ This document outlines the common coding conventions observed in the `easystats`
1212

1313
* If pull requests include user-visible changes, the "developer" version number should be increased (e.g. from 0.10.1.5 to 0.10.1.6). This ensures that `easystats::install_latest()` will download the latest versions.
1414

15+
* For the NEWS file, the current development version should not be indicated by a version number, but rather with `(devel)`.
16+
1517
## Code Style & Formatting
1618

1719
* **Assignment:** Use the `<-` operator for assignment, not `=`.
@@ -64,7 +66,7 @@ All exported functions must be documented using `roxygen2`-style comments (`#'`)
6466

6567
* Use base-R wherever possible (to reduce hard dependencies)
6668
* Make sure R-version requirements are not too strict
67-
* **Package Functions:** Always use the `::` operator to call functions from other packages (e.g., `stats::shapiro.test`, `insight::model_info`). Do not use `library()` or `require()` at the top of a file (no full import, only selective import of functions).
69+
* **Package Functions:** Always use the `::` operator to call functions from other packages (e.g., `stats::shapiro.test`, `insight::model_info`). Do not use `library()` or `require()` at the top of a file (no full import, only selective import of functions). However, in test files, package vignettes (.rmd), or in the package documentation, `::` is not required for core R packages like `stats` or `tools`.
6870
* **Conditional Checks:** Use `insight::check_if_installed("pkg_name")` to check if a package is available before using it, especially for optional ("Suggests") dependencies.
6971
* **Argument validation:** Use `insight::validate_argument()` instead of `match.arg()` to validate correct input of arguments, unless you need `several.ok`. In this case, rely on `match.arg()`.
7072

0 commit comments

Comments
 (0)