Skip to content

dRiftDM

Estimating (Time-Dependent) Drift Diffusion Models

v0.3.2 · Jun 6, 2026 · MIT + file LICENSE

Description

Fit and explore Drift Diffusion Models (DDMs), a common tool in psychology for describing decision processes in simple tasks. It can handle both time-independent and time-dependent DDMs. You either choose prebuilt models or create your own, and the package takes care of model predictions and parameter estimation. Model predictions are derived via the numerical solutions provided by Richter, Ulrich, and Janczyk (2023, <doi:10.1016/j.jmp.2023.102756>).

Downloads

CRAN

419

Last 30 days

9620th

827

Last 90 days

2.7K

Last year

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

r2u CRAN

40

Last 30 days

135

Last 90 days

488

Last year

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

autoCRAN

4

Last 7 days

18

Last 30 days

0

All-time

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

CRAN Check Status

1 ERROR
12 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 ERROR
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 (1 non-OK)
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [64s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(dRiftDM)
  
   ____________________________________________________ 
  / Welcome to dRiftDM 0.3.2 Please report any bugs or \
  \ unexpected behavior                                /
   ---------------------------------------------------- 
        \
         \
  
          ^__^ 
          (oo)\ ________ 
          (__)\         )\ /\ 
               ||------w|
               ||      ||
  > 
  > test_check("dRiftDM")
  Saving _problems/test-core_bayes_estimate-1154.R
  Warning messages:
  1: In stats::
...[truncated]...
dm.R:73:1',
    'test-plotting.R:1:1', 'test-plotting.R:52:1', 'test-plotting.R:80:1',
    'test-plotting.R:117:1', 'test-plotting.R:156:1', 'test-plotting.R:201:1',
    'test-plotting.R:230:1', 'test-plotting.R:309:1', 'test-plotting.R:341:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-core_bayes_estimate.R:1143:3'): estimate_bayes_h runs and returns correct structure ──
  Error in `checkForRemoteErrors(val)`: one node produced an error: Error in prms_to_str(model_subj): prms argument not a valid numeric vector
  Backtrace:
      ▆
   1. └─dRiftDM:::estimate_bayes_h(...) at test-core_bayes_estimate.R:1143:3
   2.   └─parallel::parLapply(...)
   3.     ├─base::do.call(...)
   4.     └─parallel::clusterApply(...)
   5.       └─parallel:::staticClusterApply(cl, fun, length(x), argfun)
   6.         └─parallel:::checkForRemoteErrors(val)
  
  [ FAIL 1 | WARN 0 | SKIP 51 | PASS 1477 ]
  Error:
  ! Test failures.
  Execution halted

Check History

ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 30, 2026
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [64s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test
...[truncated]...
  └─parallel::clusterApply(...)
   5.       └─parallel:::staticClusterApply(cl, fun, length(x), argfun)
   6.         └─parallel:::checkForRemoteErrors(val)
  
  [ FAIL 1 | WARN 0 | SKIP 51 | PASS 1477 ]
  Error:
  ! Test failures.
  Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 29, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Jun 24, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [41s/63s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional 
...[truncated]...
     
  [10] 0.00000000999999969791 - 0.00000000999999969906   [10]            
   ... ...                      ...                      and 141 more ...
  
  
  [ FAIL 1 | WARN 0 | SKIP 51 | PASS 1503 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-oldrel-windows-x86_64

tests

Running 'testthat.R' [86s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test
...[truncated]...
  └─parallel::clusterApply(...)
   5.       └─parallel:::staticClusterApply(cl, fun, length(x), argfun)
   6.         └─parallel:::checkForRemoteErrors(val)
  
  [ FAIL 1 | WARN 0 | SKIP 51 | PASS 1477 ]
  Error:
  ! Test failures.
  Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
NOTE 12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 8, 2026
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Valentin Koob <v.koob@web.de>’

Reading Rd files failed with message:
  cannot open the connection
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/dRiftDM.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies withr pbapply purrr mirai DEoptim dfoptim Rcpp Rdpack progress lifecycle coda dRiftDM

Version History

5 tracked
updated 0.3.2 ← 0.3.1 diff Jun 6, 2026
new 0.3.1 Mar 10, 2026
updated 0.3.1 ← 0.2.2 diff Nov 30, 2025
updated 0.2.2 ← 0.2.1 diff Mar 3, 2025
new 0.2.1 Jan 7, 2025