Skip to contents

When enabled, HTTP requests are prevented and functions that require the network will raise a clear offline error. Cached metadata can still be used if already available via nso_cache_enable().

Usage

nso_offline_enable()

Value

Invisibly, the previous option value as a list, suitable for restoring with options().

Examples

old <- nso_offline_enable()
getOption("mongolstats.offline")
#> [1] TRUE

# Restore the original setting
options(old)