Description Details Fields Author(s) See Also Examples
Provides a model to represent a StackExchange comment
The seComment
class is implemented as a reference class. An
instance of a generator for this class is provided as a convenience to
the user as it is configured to handle most standard cases. To access
this generator, use the object seCommentFactory
. Accessor set &
get methods are provided for every field using reference class
$accessors()
methodology (see setRefClass
). As
an example, the body
field could be accessed with
object$getBody()
and object$setBody()
.
commentID
:Internal ID of the comment
creationDate
:POSIXct date of when the comment was created
postID
:ID of object this is commenting on
postType
:What type of post this is a comment on, e.g. question or answer
score
:Total score
body
:Text of the comment
owner
:The owner of the comment, a seUser
object
site
:StackExchange site this comment belongs to
Jeff Gentry
1 2 | zz <- getComments(num=5)
sapply(zz, function(x) x$body)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.