Skip to main content

Count the Julia objects R holds

Source: R/sitrep.R

Description

The number of Julia objects that R currently holds references to (the RRefs returned by the packages that use jlbind), across all of these packages. An object is released once R garbage-collects every reference to it, so this is useful for checking that a package doesn’t leak objects.

Usage

Value

A number, or NULL if no Julia library is loaded.

Examples

object_count()
#> NULL