Skip to content

CoSMoS

2.2.0Package record

Complete Stochastic Modelling Solution

0packages depend
5.3Kdownloads / year
27.3%test coverage
13/13flavors OK

Overview

About

Makes univariate, multivariate, or random fields simulations precise and simple. Just select the desired time series or random fields’ properties and it will do the rest. CoSMoS is based on the framework described in Papalexiou (2018, doi:10.1016/j.advwatres.2018.02.013), extended for random fields in Papalexiou and Serinaldi (2020, doi:10.1029/2019WR026331), and further advanced in Papalexiou et al. (2021, doi:10.1029/2020WR029466) to allow fine-scale space-time simulation of storms (or even cyclone-mimicking fields).

Changes in 2.2.0

Internal refactoring — no breaking changes to the public API:

----------------

  • Homogenised code style throughout (double-quoted strings, no trailing return(), 2-space indent, consistent @return and @seealso tags)
  • Removed incorrect @export from internal helpers across 13 files (fixes spurious NAMESPACE entries for AR1, ARp, YW, N, rMSE, MSE, ECDF, optimACS, lmom, erfc, inv.erfc, seasonalACF, seasonalAR, stratifySeasonData, acf* helpers, and all pop* functions)
  • Merged source files to reduce duplication:
  • AR1.R + ARp.R -> ar-models.R
  • generateTS.R -> generate-ts.R
Show all changes in 2.2.0Hide the rest of the changes in 2.2.0
  • generateRF.r + generateMTS.r + generateRFFast.r + generateMTSFast.r -> generate-fields.R
  • ggamma.R + paretoII.R + burrXII.R + burrIII.R + gev.R -> distributions.R
  • actf.R + actfInv.R + acti.R -> actf.R
  • fitDist.R + fitACS.R + norm.R + errors.R -> fitting.R
  • analyzeTS.R + seasonalACF.R + seasonalAR.R + stratifyData.R -> seasonal.R
  • All S3 plot methods -> plot-methods.R
  • Internal utilities -> utils-internal.R
  • Fixed pre-existing bugs:
  • generateTS example used p = TRUE instead of p = NULL (BUG-06)
  • regenerateTS crashed after AR coefficient attribute rename (BUG-07)
  • regenerateTS applied AR coefficients in wrong order (BUG-08)
  • qburrXII operator-precedence ambiguity (BUG-09)
  • getACSArg/getDistArg failed when target functions were unexported, due to base::exists() searching the search path rather than the package namespace; fixed to use asNamespace("CoSMoS") lookup (BUG-10)
  • Extracted shared simulate_var() helper from identical generateRF / generateMTS bodies; extracted DHMgenSj / DHMgenSim from both Fast functions; removed dead stcsid parameter from generateRFFast and generateMTSFast
  • Fixed simulateTS to compute probability zero directly from stratified data instead of running the full reportTS reporting pipeline
  • Fixed rbind-in-loop growth pattern in seasonalAR
  • Fixed all class(x)[1] comparisons to use inherits() or is.*() per CRAN policy
  • Removed deprecated aes_string() calls; replaced with aes() + after_stat() / .data[[]]
  • Removed dead commented-out code throughout

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 8.3 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.2.0
READMEYes · 193 wordsVignettesYes · 1 · dynamicNEWSYes · 33% structured · mentions 2.2.0Citation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
74 (27 internal)includes a package overview page
Examples that run
100%49 run in a plain check
Exported functions with examples
100%
Documented parameters
88%
Return-value docs
61%
Help pages citing references
39%

Downloads

5.3K
CRAN downloads in the past year
Rank #7,799 · ~15/day · ~443/mo
Daily download trend is not available in this view yet.
40130 days
1.2K90 days
5.3K1 year
Compare downloads with other packages →
Also on337 r2u17 autocran122 c2d4u

Repository

15Stars
5Forks
1Open issues
1Open PRs
0Releases
86Commits
5Commit identities
License file reads as GPL-3.0 · 86 commits · Last activity 2026-05-07 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
80%
Median days to close, 50 most recently updated closed issues
46
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-07-04 · 122026-07-23 · 15
PracticesBeta

3 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/tychelab/cosmos on 2026-10-22.

Continuous integration (2)
Travis CI (config file)AppVeyor
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)

Installing CoSMoS adds 36 packages (17 with compiled code, 55 MB of source tarballs). Heaviest: BH 14 MB, ggplot2 6.0 MB, data.table 5.7 MB.

Depends (3)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (5)
Contributor, Maintainer since 2.0.0 (2020) · added in 2.0.0
Author · added in 2.0.0

Previously maintained by Filip Strnad (0.4.1 to 1.1.3).

Releases (8)

Pick two releases to compare their code metrics.

  • 2.2.0Latest
    record
    2026-05-07 · current release · diff ↗ ·
    removed 27 exports
    AR1, ARp, ECDF, MSE, N, YW, acfburrXII, acffgn, acfparetoII, acfweibull, actfdiscreteInv, erfc, getACSArg, getDistArg, inv.erfc, lmom, optimACS, popcvar, popkurt, popmean, popsd, popskew, popvar, rMSE, seasonalACF, seasonalAR, stratifySeasonData
    added 1 export
    actpntsB6
  • R
    R 4.6.0 released · 2026-04-24
  • 2.1.2
    record
    2026-01-27 · diff ↗
  • 2.1.1
    record
    2025-08-23 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 2.1.0
    record
    2021-05-30 · diff ↗ ·
    added 11 exports
    advectionF, advectionFhyperbolic, advectionFradial, advectionFrotation, advectionFspiral, advectionFspiralCE, advectionFuniform, anisotropyT, anisotropyTaffine, anisotropyTswirl, anisotropyTwave
  • R
    R 4.1.0 released · 2021-05-18
  • 2.0.0
    record
    2020-07-16 · diff ↗ ·
    added 13 exports
    actfInv, actfdiscreteInv, checkRF, fitVAR, generateMTS, generateMTSFast, generateRF, generateRFFast, quickTSPlot, stcfclayton, stcfgneiting14, stcfgneiting16, stcs
  • R
    R 4.0.0 released · 2020-04-24
  • unarchivedReturned to CRAN
    2020-04-01
  • 1.1.3
    record
    2020-04-01 · diff ↗ ·
    added 7 exports
    dgev, erfc, inv.erfc, mgev, pgev, qgev, rgev
  • archivedRemoved from CRAN
    2020-03-22
    check problems were not corrected in time
  • 1.0.1
    record
    2019-05-09 · diff ↗ ·
    removed 3 exports
    checkmodel, checkplot, checksimulation
    added 19 exports
    ECDF, MSE, N, YW, analyzeTS, checkTS, fitACS, fitDist, getACSArg, getDistArg, lmom, optimACS, rMSE, reportTS, sample.moments, seasonalACF, seasonalAR, simulateTS, stratifySeasonData
Show 3 earlier eventsHide 3 earlier events
  • R
    R 3.6.0 released · 2019-04-26
  • 0.4.1
    record
    2019-04-11
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2019-04-11
Total releases
8 / 7 yrs
License
GPL-3 OSI · relicensed from AGPL-3 in 2.2.0
Minimum R
≥ 3.5.0
Bundled data
311 KB / 2 files
Download size
4.8 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("CoSMoS")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for CoSMoS version 2.2.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy