fernandabruno / musixmatchR

Wrapper written in R for getting metadata from Musixmatch.
3 stars 1 forks source link

Error handling when input is not recognized. #3

Open dannijt opened 6 years ago

dannijt commented 6 years ago

Hello, the error message that is printed when the search input is not recognized is the following

Error in data.frame(metadata, substring(pos, 2)) : 
  arguments imply differing number of rows: 0, 1
Called from: data.frame(metadata, substring(pos, 2))

I have tried to write an if, else statement to print "no results for this query" if the input isn't recognized and I continue to get the above error message and my else statement doesn't work. I am only having this problem with this API wrapper as I have been able to do the exact same thing in spotifyr and lastfmr. Let know if you have any idea why this is happening.

fernandabruno commented 5 years ago

I think it's finally adjusted !