title: Getting nested elements from a list
body: <p>I am trying to get nested elements from a list. I can extract the elements using: <code>unlist(pull_lists[[i]]$content[[n]]['sha'])</code>, however, it seems that I cannot insert them in a nested list. I have extracted a single element of the list in a gist, which creates the reproducible example below. Here is what I have so far:</p>
  
  <pre><code>library("devtools")
  pull_lists &lt;- list(source_gist("669dfeccad88cd4348f7"))
  
  sha_list &lt;- list()
  for (i in length(pull_lists)){
    for (n in length(pull_lists[[i]]$content)){
    sha_list[i][n] &lt;- unlist(pull_lists[[i]]$content[[n]]['sha'])
    }
  }
  </code></pre>
  
  <p>How can I insert the elements in a nested fashion?</p>