Skip to content

cooltools

2.33Package record

Practical Tools for Scientific Computation and Visualisation

0packages depend
3.8Kdownloads / year
–test coverage
12/13flavors OK

Overview

About

Provides utilities for scientific computation and visualisation, with an emphasis on applications in physics and astrophysics. Functionality includes random sampling from spherical and custom distributions, information and entropy analysis, Fourier transforms, two-point correlation estimation, binning and gridding of point sets, two-dimensional interpolation, Monte Carlo integration, vector operations, coordinate transformations, physical constants, and cosmological conversions. Graphics tools support the creation and export of publication-quality plots, animations, colour scales, map projections, and bitmap images. Several of these tools were used by Obreschkow et al. (2020) doi:10.1093/mnras/staa445.

Install

Health

CRAN checks
1ERROR12OK
Check messages
ERRORexamplesr-oldrel-macos-arm64
Running examples in ‘cooltools-Ex.R’ failed
The error most likely occurred in:

> ### Name: kde2
> ### Title: Multi-dimensional adaptive kernel density estimation
> ### Aliases: kde2
> 
> ### ** Examples
> 
> # make a mock sample of n d-dimensional points from
> # three different components (1D line, 2D square, d-D normal distr)
> d = 3 # number of dimensions of mock point set; try to choose different values 2, 3, 4, ...
> n = 1e4 # number of particles per component
> set.seed(1)
> x = rbind(cbind(array(rep(runif(n,-1,1),2),c(n,2)),array(0,c(n,d-2))),
+           cbind(array(runif(2*n),c(n,2)),array(0,c(n,d-2))),
+           array(rnorm(d*n),c(n,d)))
> 
> # grid total projected probability density
> npixels = 500 # number of pixels along a grid side
> q = midseq(-3,3,npixels)
> f1 = outer(dnorm(q),dnorm(q),'*')/3+outer(dunif(q),dunif(q),'*')/3
> q = seq(round(npixels/3),round(npixels*2/3))
> f1[q+npixels*(q-1)] = f1[q+npixels*(q-1)]+(npixels/6)^2/length(q)/3
> 
> # recover 2D projected pdf from 3D point sample using different methods
> f2 = kde2(x, n=npixels, xlim=c(-3,3), ylim=c(-3,3), algorithm='basic', probability=TRUE)$field
> f3 = kde2(x, n=npixels, xlim=c(-3,3), ylim=c(-3,3), algorithm='kdefast', probability=TRUE)$field
> f4 = kde2(x, n=npixels, xlim=c(-3,3), ylim=c(-3,3), algorithm='kdenn', probability=TRUE)$field
Error in kde2(x, n = npixels, xlim = c(-3, 3), ylim = c(-3, 3), algorithm = "kdenn",  : 
  Package EBImage is needed to run kde2 in with kdenn or manual algorithm.
Execution halted

CRAN check page ↗

Slowest check: 8.2 min · r-oldrel-windows-x86_64
Status changes
  • ERROR12 OK, 1 ERROR2026-08-13
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-04-22
  • ERROR13 OK, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.33
READMENoVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Help pages
92includes a package overview page
Examples that run
98%51 run in a plain check · 1 never run
Exported functions with examples
57%
Documented parameters
94%
Return-value docs
100%
Help pages citing references
0%

Downloads

3.8K
CRAN downloads in the past year
Rank #6,270 · ~10/day · ~318/mo
Daily download trend is not available in this view yet.
52430 days
1.3K90 days
3.8K1 year
Compare downloads with other packages →
Also on384 r2u18 autocran

Repository

1Stars
1Forks
0Open issues
0Open PRs
0Releases
96Commits
3Commit identities
96 commits · Last activity 2026-09-11
Responsiveness
How these are sampled
PRs merged (all time)
50%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
140
PracticesBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/obreschkow/cooltools on 2026-10-11.

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
18 external dependencies (excludes base and recommended)

Installing cooltools adds 20 packages (16 with compiled code, 24 MB of source tarballs). Heaviest: data.table 5.7 MB, sp 4.3 MB, pak 3.8 MB.

Depends (0)
none
LinkingTo (1)
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 1.6 (2022)
Releases (8)

Pick two releases to compare their code metrics.

  • 2.33Latest
    record
    2026-09-11 · current release · diff ↗ ·
    added 7 exports
    angularmomentum, blur, distradius, getgit, kappacorotation, linfun, streamlines
  • R
    R 4.6.0 released · 2026-04-24
  • 2.18
    record
    2025-07-24 · diff ↗ ·
    added 7 exports
    error, progress, readhdf5, sigmoid, sortlist, userattributes, writehdf5
  • R
    R 4.5.0 released · 2025-04-11
  • unarchivedReturned to CRAN
    2024-07-19
  • 2.4
    record
    2024-07-19 · diff ↗ ·
    added 1 export
    jackknife
  • R
    R 4.4.0 released · 2024-04-24
  • archivedRemoved from CRAN
    2024-01-12
    issues were not corrected despite reminders
  • 2.1.27
    record
    2023-07-19 · diff ↗ ·
    added 7 exports
    gradient, grf, inertia, is.equal, moments, smartround, stretch
  • R
    R 4.3.0 released · 2023-04-21
  • 2.0
    record
    2022-10-05 · diff ↗ ·
    removed 1 export
    griddata2
  • 1.8
    record
    2022-08-19 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.7
    record
    2022-03-03 · diff ↗ ·
    added 2 exports
    ngon, smoothfun
  • 1.6
    record
    2022-02-07
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2022-02-07
Total releases
8 / 4 yrs
License
GPL-3 OSI
Bundled data
178 KB / 1 file
Download size
293 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("cooltools")
Obreschkow, D. (2026). cooltools: Practical Tools for Scientific Computation and Visualisation (Version 2.33) [Computer software]. https://doi.org/10.32614/CRAN.package.cooltools

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 cooltools version 2.33 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, 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