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 |
extended R6 class
r6extended
r6extended
R6Class
object.
Object of R6Class
# 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()
# 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()