# First, make sure your personal PVS API key is saved as character string in the pvs.key variable:
pvs.key <- "yourkey"
# get ratings by candidate and special interest group
rating <- Rating.getCandidateRating(candidateId="9490")
rating
Run the code above in your browser using DataLab