as.scalar: Extends jsonlite's as.scalar method.

View source: R/json_utils.R

as.scalarR Documentation

Extends jsonlite's as.scalar method.

Description

This function is originally from the jsonlite package, file as.scalar.R Unfortunately, that function is not exported from jsonlite, but we need it for our more safe_unbox function above. The call to is.namedlist has been inlined with the actual code.

Usage

as.scalar(obj)

Arguments

obj

The object to convert to a scalar


lifs-tools/rmzTab-m documentation built on Jan. 26, 2023, 4:45 p.m.