Skip to contents

Downloads reviews for a LEGO set.

Usage

getReviews(setID, key = getOption("brickset_key"), ...)

Arguments

setID

the ID of the set (see data(legosets))

key

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').

Value

a data.frame with the reviews.

author

Author of the review

datePosted

Date of the review

title

Title of the review

review

The text of the review

HTML

TRUE if the review contains HTML

overall

overall rating by the reviewer

parts

rating for the parts

buildingExperience

rating for the building experience

playability

rating for the playability

valueForMoney

rating for the value for money

Examples

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
}