Skip to content

RPhosFate

Soil and Chemical Substance Emission and Transport Model

v2.0.1 · Mar 22, 2025 · AGPL (>= 3)

Description

An enhanced version of the semi-empirical, spatially distributed emission and transport model PhosFate implemented in 'R' and 'C++'. It is based on the D-infinity, but also supports the D8 flow method. The currently available substances are suspended solids (SS) and particulate phosphorus (PP). A major feature is the allocation of substance loads entering surface waters to their sources of origin, which is a basic requirement for the identification of critical source areas and in consequence a cost-effective implementation of mitigation measures. References: Hepp et al. (2022) <doi:10.1016/j.jenvman.2022.114514>; Hepp and Zessner (2019) <doi:10.3390/w11102161>; Kovacs (2013) <http://hdl.handle.net/20.500.12708/9468>.

Downloads

CRAN

299

Last 30 days

15806th

658

Last 90 days

2.5K

Last year

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

r2u CRAN

24

Last 30 days

115

Last 90 days

428

Last year

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

autoCRAN

9

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

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 Apr 22, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/RPhosFate.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Line coverage

Expression

Tests / Examples

Functions

40 5 exported

Complexity

2.3 avg / 14 max

Call network

40 nodes / 10 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Compare versions

Code

Structure

Lines of code

5,397

Files

142

Compiled share

19.1%

Has compiled src

Yes

Language breakdown

R 2,862 (53%)C/C++/src 1,029 (19.1%)Tests 6 (0.1%)Docs 1,372 (25.4%)Vignettes 128 (2.4%)

API

Exported functions

20

Internal functions

27

Recent export changes

v2.0.1+1 img2tif  −1 transportCalcOrder
v1.0.2+20 DEMrelatedInput, RPhosFate, autoCalibrate +17 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

72.2%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

93.3%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5.0

System requirements

C++ standard

C++17

License

AGPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

4

First release

2022-09-21

Latest release

2025-03-22

Avg cadence

215 days

Cold removal rate

100%

Dep drift

5

LOC over versions

v1.0.2: 4,931 LOCv1.0.3: 4,931 LOCv1.0.4: 5,043 LOCv2.0.1: 5,397 LOC

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

Dependency Network

Dependencies Reverse dependencies checkmate Rcpp terra yaml RPhosFate

Version History

5 tracked
new 2.0.1 Mar 10, 2026
updated 2.0.1 ← 1.0.4 diff Mar 21, 2025
updated 1.0.4 ← 1.0.3 diff Oct 6, 2023
updated 1.0.3 ← 1.0.2 diff Mar 5, 2023
new 1.0.2 Sep 20, 2022