Package 'r6extended'

Title: Extension for 'R6' Base Class
Description: Useful methods and data fields to extend the bare bones 'R6' class provided by the 'R6' package - ls-method, hashes, warning- and message-method, general get-method and a debug-method that assigns self and private to the global environment.
Authors: Peter Meissner [aut, cre]
Maintainer: Peter Meissner <[email protected]>
License: MIT + file LICENSE
Version: 0.1.2
Built: 2024-11-03 02:48:54 UTC
Source: https://github.com/petermeissner/r6extended

Help Index


extended R6 class

Description

extended R6 class

Usage

r6extended

Format

R6Class object.

Value

Object of R6Class

Examples

# make new
ext <- r6extended$new()

# what is there?
ext$ls()

# getting things (wherever they are, also private stuff)
ext$get("options")
ext$get("hashes")

# messages
ext$message("Please note ...")
ext$options$verbose <- FALSE
ext$message("Please note ...")

# warning
ext$warning("Beware! ...")

# build in hashing
ext$hash_do()
ext$hash_get("options")

# debugging
ext$debug()
private$hash()
self$ls()