Skip to contents

Explicitly controls whether sx functions should use spherical geometry (S2) logic by default.

Usage

sx_use_s2(use)

Arguments

use

Logical. TRUE to enable S2 by default, FALSE to disable. If missing, returns the current global setting.

Value

Logical. The current setting (invisibly if use is provided).

Details

This setting acts as a global default for sx functions. It can comprise:

  • Global Default: Unset (NULL). sx defaults to TRUE (Geometric safety) if backend supports it.

  • User Override: Set via this function.

  • Per-Call Override: Arguments use_s2 in sx_* functions take highest precedence.