as_R6: As R6

Description Usage Arguments Examples

View source: R/S3--aaa-setup.R

Description

Debug method that strips all gqlr classes and assigns the class as 'R6'

Usage

1
as_R6(x)

Arguments

x

any object. If it inherits 'R6', then the class of x is set to 'R6'

Examples

1
2
3
Int <- getFromNamespace("Int", "gqlr")$clone()
print(Int)
print(as_R6(Int))

Example output

<graphql definition>
  | scalar Int
<R6>
  Public:
    .argNames: loc description name directives .resolve .parse_ast
    .args: list
    .format: function (...) 
    .parse_ast: function (obj, schema) 
    .resolve: function (value, ...) 
    .title: Int
    clone: function (deep = FALSE) 
    description: The Int scalar type represents a signed 32-bit numeric n ...
    directives: NULL
    initialize: function (loc = NULL, description = NULL, name, directives = NULL, 
    loc: NULL
    name: Name, Node, AST, R6

gqlr documentation built on Dec. 2, 2019, 5:07 p.m.

Related to as_R6 in gqlr...