Skip to contents

Collects a single diagnostic snapshot of how this package can reach OpenSim: whether the native bridge was compiled in and by which detection method, whether the opensim-cmd CLI is on the search path, and the OpenSim / Simbody versions reported by whichever backend is available. Useful in CI logs and bug reports.

Usage

opensimDiagnostics(cli = NULL)

Arguments

cli

Optional opensim-cmd command or path passed to opensimCLIAvailable() / opensimCLIPath().

Value

An opensim_diagnostics list with elements package, native_available, detect_method, cli_available, cli_path, opensim_version, simbody_version, and backend (the backend that would be used by default: "native", "cli", or "none").

Examples

opensimDiagnostics()
#> <PhysioOpenSim diagnostics>
#>   default backend  : none
#>   native available : FALSE (detect method: none)
#>   CLI available    : FALSE
#>   OpenSim version  : unknown
#>   Simbody version  : unknown