Downloads reviews for a LEGO set.
getReviews(setID, key = getOption("brickset_key"), ...)
a data.frame with the reviews.
Author of the review
Date of the review
Title of the review
The text of the review
TRUE if the review contains HTML
overall rating by the reviewer
rating for the parts
rating for the building experience
rating for the playability
rating for the value for money
the ID of the set (see data(legosets)
)
the Brickset API key.
other parameters passed to getUserHash
including
the Brickset username and password if they are not available from
getOption('brickset_username')
and getOption('brickset_password')
.
if (FALSE) {
options(brickset_key = 'BRICKSET_KEY',
brickset_username = 'BRICKSET_UERNAME',
brickset_password = 'BRICKSET_PASSWORD')
getReviews('31728') # Will return TRUE if the credentials are correct
}
Run the code above in your browser using DataLab