get_anything: Get objects with package namespace support

View source: R/get_anything.R

get_anythingR Documentation

Get objects with package namespace support

Description

This function extends base::get() to support package namespace scoping (e.g., "pkg::var"). It's particularly useful when working with package exports and namespace-qualified objects.

Usage

get_anything(x)

Arguments

x

Character string specifying the object to retrieve. Can be either a simple object name or a namespace-qualified name (e.g., "pkg::var")

Value

The requested object

Examples

# Get a namespace-qualified object
plnr::get_anything("plnr::nor_covid19_cases_by_time_location")

# Get a simple object (same as base::get)
x <- 1
get_anything("x")

plnr documentation built on Nov. 23, 2025, 1:06 a.m.