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.
Hello, the error message that is printed when the search input is not recognized is the following
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.