R/photon_remote.R

photon_remote <- R6::R6Class(
  classname = "photon_remote",
  inherit = photon,
  public = list(
    initialize = function(url, mount = TRUE) {
      assert_url(url)
      private$url <- url
      if (mount) self$mount()
      invisible(self)
    },

    get_url = function() {
      private$url
    },

    mount = function() {
      assign("instance", self, envir = photon_cache())
    }
  ),

  private = list(url = NULL)
)

Try the photon package in your browser

Any scripts or data that you put into this service are public.

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