Nothing
Code
obj <- klass(1, -1)
attr(obj, "x") <- -1
validate(obj)
Condition
Error:
! <klass> object is invalid:
- x must be positive
Code
attr(obj, "x") <- "y"
validate(obj)
Condition
Error:
! <klass> object properties are invalid:
- @x must be <double>, not <character>
Code
obj <- klass2(1, -1, 1)
attr(obj, "x") <- -1
validate(obj)
Condition
Error:
! <klass2> object is invalid:
- x must be positive
Code
attr(obj, "x") <- "y"
attr(obj, "z") <- "y"
validate(obj)
Condition
Error:
! <klass2> object properties are invalid:
- @x must be <double>, not <character>
- @z must be <double>, not <character>
Code
validate(x)
Condition
Error:
! <Double> object is invalid:
- Underlying data must be <double> not <character>
Code
foo(x = 123)
Condition
Error:
! <foo>@x must be <double>, not <character>
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.