Skip to content

Gravitational N-Body Simulation

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

Overview

About

Run simple direct gravitational N-body simulations. The package can access different external N-body simulators (e.g. GADGET-4 by Springel et al. (2021) doi:10.48550/arXiv.2010.03567), but also has a simple built-in simulator. This default simulator uses a variable block time step and lets the user choose between a range of integrators, including 4th and 6th order integrators for high-accuracy simulations. Basic top-hat smoothing is available as an option. The code also allows the definition of background particles that are fixed or in uniform motion, not subject to acceleration by other particles.

Install

Health

CRAN checks
13OK
Slowest check: 2.6 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-04-22
  • ERROR13 OK, 1 ERROR2026-04-18
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.41
READMENoVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Help pages
8includes a package overview page
Examples that run
100%2 run in a plain check
Exported functions with examples
33%
Documented parameters
100%
Return-value docs
83%
Help pages citing references
0%

Downloads

2.2K
CRAN downloads in the past year
Rank #22,112 · ~6/day · ~186/mo
Daily download trend is not available in this view yet.
20730 days
60490 days
2.2K1 year
Compare downloads with other packages →
Also on359 r2u7 autocran

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)

Installing nbody adds 10 packages (6 with compiled code, 8.6 MB of source tarballs). Heaviest: magicaxis 3.4 MB, maps 2.2 MB, Rcpp 1.8 MB.

Depends (1)
R >= 4.0.0
Imports (2)
LinkingTo (1)
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 1.30 (2022)
Releases (4)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • unarchivedReturned to CRAN
    2024-08-20
  • 1.41Latest
    record
    2024-08-20 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • archivedRemoved from CRAN
    2023-11-28
    requires archived package 'magicaxis'
  • R
    R 4.3.0 released · 2023-04-21
  • 1.33
    record
    2022-08-16 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.31
    record
    2022-03-04 · diff ↗
  • 1.30
    record
    2022-02-03
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2022-02-03
Total releases
4 / 4 yrs
License
GPL-3 OSI
Minimum R
≥ 4.0.0
Download size
21 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("nbody")
Obreschkow, D. (2024). nbody: Gravitational N-Body Simulation (Version 1.41) [Computer software]. https://doi.org/10.32614/CRAN.package.nbody

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

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