Error in bind_rows_(x, .id) : Argument 1 must have names using map_df in purrr : <p>I'm using the spotifyr package to scrape spotify audio features for every song of specific albums in my dataset. My issue is that my dataset consists of some artists that are not on spotify -- so they shouldn't be returning any values. </p>

<p>My issue is that when I get to an artist that is not on spotify, I get this error:</p>

<pre><code>Error in bind_rows_(x, .id) : Argument 1 must have names
</code></pre>

<p>I've tried wrapping the function in tryCatch to get <code>NA</code> for each column of the problematic row, but it doesn't seem to work.</p>

<p>Here's an example of my code (FYI, you need to get API access from spotify's website to run the spotifyr code)</p>

<pre><code>library(readr)
library(spotifyr)
library(dplyr)
library(purrr)

Sys.setenv(SPOTIFY_CLIENT_ID = "xxx") #xxx will be from spotify's website
Sys.setenv(SPOTIFY_CLIENT_SECRET = "xxx")
access_token &lt;- get_spotify_access_token()

artist &lt;- c("Eminem", "Chris Stapleton", "Brockhampton", "Big Sean, Metro Boomin")
album &lt;- c("Revival", "From A Room: Volume 2", "SATURATION III", "Double or Nothing")
mydata &lt;- data_frame(artist, album)

get_album_data &lt;- function(x) {
  get_artist_audio_features(mydata$artist[x], return_closest_artist = TRUE) %&gt;%
    filter(album_name == mydata$album[x])}

try_get_album_data &lt;- function(x) {
  tryCatch(get_album_data(x), error = function(e) {NA})}

map_df(seq(1, 4), try_get_album_data)
</code></pre>
