Skip to content

graph4lg

Build Graphs for Landscape Genetics Analysis

v1.8.0 · Jan 30, 2023 · GPL-2

Description

Build graphs for landscape genetics analysis. This set of functions can be used to import and convert spatial and genetic data initially in different formats, import landscape graphs created with 'GRAPHAB' software (Foltete et al., 2012) <doi:10.1016/j.envsoft.2012.07.002>, make diagnosis plots of isolation by distance relationships in order to choose how to build genetic graphs, create graphs with a large range of pruning methods, weight their links with several genetic distances, plot and analyse graphs, compare them with other graphs. It uses functions from other packages such as 'adegenet' (Jombart, 2008) <doi:10.1093/bioinformatics/btn129> and 'igraph' (Csardi et Nepusz, 2006) <https://igraph.org/>. It also implements methods commonly used in landscape genetics to create graphs, described by Dyer et Nason (2004) <doi:10.1111/j.1365-294X.2004.02177.x> and Greenbaum et Fefferman (2017) <doi:10.1111/mec.14059>, and to analyse distance data (van Strien et al., 2015) <doi:10.1038/hdy.2014.62>.

Downloads

CRAN

459

Last 30 days

8475th

1.4K

Last 90 days

6.4K

Last year

Trend: +18.3% (30d vs prior 30d)

r2u CRAN

1

Last 30 days

27

Last 90 days

109

Last year

Trend: -90% (30d vs prior 30d)

autoCRAN

1

Last 7 days

17

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

4 NOTE
9 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang NOTE
r-devel-linux-x86_64-fedora-gcc NOTE
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (4 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Paul Savary <psavary@protonmail.com>’

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Paul Savary <psavary@protonmail.com>’

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespace in Imports field not imported from: ‘Rdpack’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespace in Imports field not imported from: ‘Rdpack’
  All declared Imports should be used.

Check History

NOTE 9 OK · 4 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Paul Savary <psavary@protonmail.com>’

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Paul Savary <psavary@protonmail.com>’

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespace in Imports field not imported from: ‘Rdpack’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespace in Imports field not imported from: ‘Rdpack’
  All declared Imports should be used.
ERROR 9 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Paul Savary <psavary@protonmail.com>’

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
ERROR r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Paul Savary <psavary@protonmail.com>’

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespace in Imports field not imported from: ‘Rdpack’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespace in Imports field not imported from: ‘Rdpack’
  All declared Imports should be used.
NOTE 10 OK · 4 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Paul Savary <psavary@protonmail.com>’

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Paul Savary <psavary@protonmail.com>’

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespace in Imports field not imported from: ‘Rdpack’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespace in Imports field not imported from: ‘Rdpack’
  All declared Imports should be used.

Code

Structure

Lines of code

26,743

Files

233

Compiled share

0%

Has compiled src

No

Language breakdown

R 12,481 (46.7%)Docs 4,592 (17.2%)Vignettes 9,670 (36.2%)

API

Exported functions

67

Internal functions

1

Recent export changes

v1.8.0+1 graphab_interpol  −2 mat_pw_d_j, mat_pw_gst
v1.4.0+4 check_merge, genind_to_structure, graphab_corridor +1 more

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

83.6%

\dontrun example ratio

29.6%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

2

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.1.0

System requirements

C++ standard

License

GPL-2

License flags

SPDX valid, OSI approved

History

Versions

10

First release

2019-07-23

Latest release

2023-01-30

Avg cadence

98 days

Cold removal rate

100%

Dep drift

22

LOC over versions

v0.1.1: 17,277 LOCv0.2.0: 19,778 LOCv0.3.0: 19,823 LOCv0.5.0: 18,210 LOCv1.0.0: 22,919 LOCv1.0.1: 22,970 LOCv1.2.0: 25,772 LOCv1.4.0: 26,774 LOCv1.6.0: 26,849 LOCv1.8.0: 26,743 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies adegenet ggplot2 stringr igraph spatstat.geom spatstat.linnet Matrix vegan pegas MASS tidyr sp sf hierfstat rappdirs +5 more dependencies graph4lg

Version History

11 tracked
new 1.8.0 Mar 10, 2026
updated 1.8.0 ← 1.6.0 diff Jan 29, 2023
updated 1.6.0 ← 1.4.0 diff May 17, 2022
updated 1.4.0 ← 1.2.0 diff Mar 7, 2022
updated 1.2.0 ← 1.0.1 diff Mar 15, 2021
updated 1.0.1 ← 1.0.0 diff Sep 27, 2020
updated 1.0.0 ← 0.5.0 diff Jul 21, 2020
updated 0.5.0 ← 0.3.0 diff May 3, 2020
updated 0.3.0 ← 0.2.0 diff Mar 18, 2020
updated 0.2.0 ← 0.1.1 diff Dec 11, 2019
new 0.1.1 Jul 22, 2019