Learn R Programming

nbody (version 1.41)

default.code: Set a default external simulation code

Description

Set a default external simulation code

Usage

default.code(code = NULL)

Value

Returns the current list `code`. If no such last has been set and `default.code()` is called without argument, an error is produced.

Arguments

code

structured list specifying the default external simulation code used when calling run.simulation. This list has exactly the same format as the sub-list `code` described in the documentation of run.simulation.

Author

Danail Obreschkow