Skip to content

hitandrun

0.5-6

"Hit and Run" and "Shake and Bake" for Sampling Uniformly from Convex Shapes

4packages depend
32.8Kdownloads / year
56.6%test coverage
8/13checks pass

Overview

About
Maintained by Gert van ValkenhoefFirst published 2012-01-1014 releasesCRAN page ↗GitHub ↗

The "Hit and Run" Markov Chain Monte Carlo method for sampling uniformly from convex shapes defined by linear constraints, and the "Shake and Bake" method for sampling from the boundary of such shapes. Includes specialized functions for sampling normalized weights with arbitrary linear constraints. Tervonen, T., van Valkenhoef, G., Basturk, N., and Postmus, D. (2012) doi:10.1016/j.ejor.2012.08.026. van Valkenhoef, G., Tervonen, T., and Postmus, D. (2014) doi:10.1016/j.ejor.2014.06.036.

Install

Health

CRAN checks
5NOTE8OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
Slowest check: 2.3 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.63
56.6%
Coverage · measured lines
100%
Documentation · exports
2
Dependencies · direct
Check history
  • NOTE2026-07-16
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 33% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
98%
Return-value docs
100%
References docs
14%

Downloads

32.8K
CRAN downloads in the past year
Rank #3,193 · ~90/day · ~2.7K/mo
Daily download trend is not available in this view yet.
96830 days
3.6K90 days
32.8K1 year
Compare downloads with other packages →
Also on466 r2u22 autocran329 conda_forge75 c2d4u

Repository

Repository
16Stars
5Forks
1Open issues
0Open PRs
0Releases
156Commits
5Contributors
156 commits · Last activity 2022-05-27

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/gertvv/hitandrun on 2026-08-23.

Continuous integration (1)
Travis CI
Reproducibility and dev environment (1)
Makefile
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (2)
rcddstats
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
4direct
9indirect

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (2)
Author, Maintainer, Copyright holder
Author · added in 0.4-2
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

14 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 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
  • 0.5-6Latest
    2022-05-27 · current release · diff ↗
  • unarchivedReturned to CRAN
    2022-05-27
  • archivedRemoved from CRAN
    2022-05-21
    check issues were not corrected in time
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.5-5
    2019-01-08 · diff ↗
  • 0.5-4
    2018-05-21 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • 0.5-3
    2016-12-23 · diff ↗
Show 16 earlier events
  • R
    R 3.3.0 released · 2016-05-03
  • 0.5-2
    2015-07-10 · diff ↗
  • 0.5-1
    2015-04-19 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 0.5
    2015-01-06 · diff ↗
  • 0.4-2
    2014-08-05 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 0.4-1
    2014-01-14 · diff ↗
  • 0.4
    2013-11-27 · diff ↗
  • 0.3
    2013-10-31 · diff ↗
  • 0.2-2
    2013-08-22 · diff ↗
  • 0.2-1
    2013-07-11 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • R
    R 2.15.0 released · 2012-03-30
  • 0.2
    2012-01-10
  • R
    R 2.14.0 released · 2011-10-31

Package metadata

First published
2012-01-10
Total releases
14 / 14 yrs
License
GPL-3 OSI
Download size
38 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("hitandrun")
van Valkenhoef, G., & Tervonen, T. (2022). hitandrun: "Hit and Run" and "Shake and Bake" for Sampling Uniformly from Convex Shapes (Version 0.5-6) [Computer software]. https://doi.org/10.32614/CRAN.package.hitandrun

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 hitandrun version 0.5-6 [Data set]. HJJB, LLC. Data release v2026-08-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-24, 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