Description Usage Arguments Note Examples
write the code for an S4 class with setters and getters
1 2 3 4 5 6 |
clname |
character(1) class name |
protolist |
named list() of prototypical values for slots |
check_init |
logical(1) if TRUE, try to construct instance with prototype before building code |
The example is inspired by Stuart Lee's blog post
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.