nomine icon indicating copy to clipboard operation
nomine copied to clipboard

Subscript out of bounds error when only submitting two names?

Open AmyMikhail opened this issue 7 years ago • 1 comments

Running the following:

nomine::get_nationalities(c("Jane Doe", "John Smith"))

... gives me this error:

  |                                                                                                                               |   0%Error in r[[5]] : subscript out of bounds

I am using R 3.5.1 and have only tried this three times. Is this to do with the API request limit?

AmyMikhail avatar Oct 02 '18 15:10 AmyMikhail

The problem is related to the new changes in Name-Prism and the previous version of nomine. The anonymous Name-Prism API seems to be disabled, so now you must ask for your own access token, by filling up the following form and then sending an email to Prof. Steven Skiena with your affiliation email account. In addition, you must get the latest version of nomine and include your token as a parameter of the new get_nationalities function. As the new update is not yet on CRAN, you may install the package using devtools:

if(!require("devtools")){
    install.packages("devtools")
}
devtools::install_github("cdcrabtree/nomine")

cchacua avatar Oct 07 '18 14:10 cchacua