# NOT RUN {
# set versions will replace anything already there.
a <- set_class(TRUE, 'example')
a <- set_comment(a, 'this is an example of setting a comment')
# Add version will add to `c()` anything there.
b <- add_class(a, 'ex123')
b <- add_comment(b, 'but you can also add more information')
class(a)
class(b)
comment(a)
comment(b)
# }
Run the code above in your browser using DataLab