Grammatical Evolution for R
Overview
A native R implementation of grammatical evolution (GE). GE facilitates the discovery of programs that can achieve a desired goal. This is done by performing an evolutionary optimisation over a population of R expressions generated via a user-defined context-free grammar (CFG) and cost function.
- Add ReplaceInExpression helper function
- Update GeneticAlg.int to accept suggestions as a list (Thanks to Rafael Klaic)
- Update vignette with new grammar rules
- Fix bug in Evolutionary strategy when popsize = 1 (Thanks to Daniel Klotz <https://github.com/danklotz>)
- Change ga.mutation parameter to fix its typo (Thanks to Daniel Klotz <https://github.com/danklotz>)
From NEWS.md in the release
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Farzad Noorian <farzad.noorian@gmail.com>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Farzad",
family = "Noorian",
role = c("aut", "cre"),
email = "farzad.noorian@gmail.com"),
person(given = c("Anthony", "Mihirana"),
family = "de Silva",
role = "aut"))
as necessary.- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 14
- Examples that run
- 100%14 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 93%
- Return-value docs
- 100%
- Help pages citing references
- 86%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 3
- Median days to close, 50 most recently updated closed PRs
- 5
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/fnoorian/gramevol on 2026-10-25.
GitHub Pages site last deployed 2016-09-26
Dependencies
Installing gramEvol adds no packages beyond those that come with R.
Code & Tests
People & History
Maintainer since 1.0-1 (2014)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 2.1-4Latest
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- 2.1-32016-07-04 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 2.1-2
- RR 3.2.0 released · 2015-04-16
- 2.0-22015-02-11 · diff ↗ ·
added 30 exports
grule, gsrule, GrammarMap, GrammarRandomExpression, EvolutionStrategy.int, GrammarStartSymbol, GrammarIsRecursive, GrammarIsTerminal, GrammarGetDepth, GrammarMaxRuleSize, GrammarMaxSequenceLen, GrammarMaxSequenceRange, GrammarNumOfExpressions, c.GERule, as.character.GEPhenotype, as.expression.GEPhenotype, print.GEPhenotype, print.GERule, print.GrammarOverflow, print.GESearch, print.GeneticAlg.int, print.EvolutionStrategy.int, print.GrammaticalEvolution, summary.grammar, print.summary.grammar, is.GrammarOverflow, GrammarGetFirstSequence, GrammarGetNextSequence, GrammaticalExhaustiveSearch, GrammaticalRandomSearch
Package metadata
- First published
- 2014-05-20
- Total releases
- 7 / 12 yrs
- License
- GPL (>= 2) OSI
- Download size
- 295 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("gramEvol")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v071.i01.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.