get_instance: Photon utilities

View source: R/new_photon.R

get_instanceR Documentation

Photon utilities

Description

Utilities to manage photon instances. These functions operate on mounted photon instances which can be initialized using new_photon.

  • get_instance() retrieves the active photon instance.

  • get_photon_url() retrieves the photon URL to send requests.

Usage

get_instance()

get_photon_url()

Value

get_instance returns a R6 object of class photon. get_photon_url() returns a URL string.

Examples

# make a new photon instance
new_photon()

# retrieve it from the cache
get_instance()

# get the server url
get_photon_url()

photon documentation built on April 10, 2026, 5:07 p.m.