Skip to content

r3PG

Simulating Forest Growth using the 3-PG Model

v0.1.6 · Sep 19, 2023 · GPL-3

Description

Provides a flexible and easy-to-use interface for the Physiological Processes Predicting Growth (3-PG) model written in Fortran. The r3PG serves as a flexible and easy-to-use interface for the 3-PGpjs (monospecific, evenaged and evergreen forests) described in Landsberg & Waring (1997) <doi:10.1016/S0378-1127(97)00026-1> and the 3-PGmix (deciduous, uneven-aged or mixed-species forests) described in Forrester & Tang (2016) <doi:10.1016/j.ecolmodel.2015.07.010>.

Downloads

CRAN

384

Last 30 days

11301st

932

Last 90 days

3.3K

Last year

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

r2u CRAN

24

Last 30 days

116

Last 90 days

394

Last year

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

autoCRAN

5

Last 7 days

23

Last 30 days

1

All-time

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

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
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 History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

4,873

Files

69

Compiled share

53.2%

Has compiled src

Yes

Language breakdown

R 1,277 (26.2%)C/C++/src 2,592 (53.2%)Tests 105 (2.2%)Docs 893 (18.3%)Vignettes 6 (0.1%)

API

Exported functions

13

Internal functions

4

Recent export changes

v0.1.4+7 get_parameters, i_output, i_parameters +4 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.08

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

69.2%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5.0

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

7

First release

2020-05-11

Latest release

2023-09-19

Avg cadence

170 days

Cold removal rate

Dep drift

0

LOC over versions

v0.1.0: 4,023 LOCv0.1.1: 4,023 LOCv0.1.2: 4,030 LOCv0.1.3: 4,074 LOCv0.1.4: 4,784 LOCv0.1.5: 4,871 LOCv0.1.6: 4,873 LOC

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

Version History

8 tracked
new 0.1.6 Mar 10, 2026
updated 0.1.6 ← 0.1.5 diff Sep 18, 2023
updated 0.1.5 ← 0.1.4 diff Jul 3, 2023
updated 0.1.4 ← 0.1.3 diff May 18, 2022
updated 0.1.3 ← 0.1.2 diff Feb 19, 2021
updated 0.1.2 ← 0.1.1 diff Jun 2, 2020
updated 0.1.1 ← 0.1.0 diff May 18, 2020
new 0.1.0 May 10, 2020