Skip to content

mixvlmc

Variable Length Markov Chains with Covariates

v0.2.2 · May 26, 2025 · GPL (>= 3)

Description

Estimates Variable Length Markov Chains (VLMC) models and VLMC with covariates models from discrete sequences. Supports model selection via information criteria and simulation of new sequences from an estimated model. See Bühlmann, P. and Wyner, A. J. (1999) <doi:10.1214/aos/1018031204> for VLMC and Zanin Zambom, A., Kim, S. and Lopes Garcia, N. (2022) <doi:10.1111/jtsa.12615> for VLMC with covariates.

Downloads

CRAN

590

Last 30 days

6079th

1.8K

Last 90 days

7.3K

Last year

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

r2u CRAN

24

Last 30 days

127

Last 90 days

417

Last year

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

autoCRAN

3

Last 7 days

16

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 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 8, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 6, 2026
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [114s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(mixvlmc)
  > 
  > test_check("mixvlmc")
  Starting 2 test processes.
  > test-ctx_node_navigation.R: 
  
  Error:
  ! testt
...[truncated]...
       └─base::lapply(...)
   15.               └─testthat (local) FUN(X[[i]], ...)
   16.                 └─private$handle_error(msg, i)
   17.                   └─cli::cli_abort(...)
   18.                     └─rlang::abort(...)
  Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 2, 2026
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  8.7Mb
  sub-directories of 1Mb or more:
    data   2.0Mb
    libs   5.1Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  8.6Mb
  sub-directories of 1Mb or more:
    data   2.0Mb
    libs   5.1Mb
ERROR 11 OK · 2 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/mixvlmc.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

installed package size

installed size is  8.7Mb
  sub-directories of 1Mb or more:
    data   2.0Mb
    libs   5.1Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  8.6Mb
  sub-directories of 1Mb or more:
    data   2.0Mb
    libs   5.1Mb
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  8.7Mb
  sub-directories of 1Mb or more:
    data   2.0Mb
    libs   5.1Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  8.6Mb
  sub-directories of 1Mb or more:
    data   2.0Mb
    libs   5.1Mb

Code

Structure

Lines of code

24,132

Files

314

Compiled share

11.6%

Has compiled src

Yes

Language breakdown

R 8,574 (35.5%)C/C++/src 2,806 (11.6%)Tests 6,466 (26.8%)Docs 4,235 (17.5%)Vignettes 2,051 (8.5%)

API

Exported functions

35

Internal functions

251

Recent export changes

v0.2.0+13 as_sequence, children, counts +10 more
v0.1.1+22 as_covlmc, as_vlmc, context_number +19 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.93

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

8.3%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

2.10

System requirements

C++ standard

License

GPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

4

First release

2023-07-10

Latest release

2025-05-26

Avg cadence

110 days

Cold removal rate

Dep drift

4

LOC over versions

v0.1.1: 11,020 LOCv0.2.0: 23,822 LOCv0.2.1: 23,830 LOCv0.2.2: 24,132 LOC

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

Dependency Network

Dependencies Reverse dependencies assertthat butcher ggplot2 nnet pROC Rcpp (>= 1.0.8.3) rlang stringr VGAM withr mixvlmc

Version History

5 tracked
new 0.2.2 Mar 10, 2026
updated 0.2.2 ← 0.2.1 diff May 25, 2025
updated 0.2.1 ← 0.2.0 diff Oct 30, 2023
updated 0.2.0 ← 0.1.1 diff Oct 27, 2023
new 0.1.1 Jul 9, 2023