title: To see All the content (not just objects) in a package in R
body: <p>This is likely a newbie's question but I think I did my homework and yet have not found the answer (I hope to find) so I am posting it here to seek some assistance.</p>
  
  <p>Similar questions were asked before but from what I found, no answer could help me with the current issue except an "expensive" solution, which requires an editor for R.</p>
  
  <p>I learned that <code>ls</code> and <code>objects</code> allow us to view the objects inside a package. But even with <code>ls(all.names=TRUE)</code>, I still couldn't see <strong>all</strong> the content. Someone suggested <code>ls(getNAMEspace)</code> but still this isn't "good" enough for me.</p>
  
  <p>e.g.</p>
  
  <pre><code>&gt;search()
  [1]".GlobalEvn"      "package:TCGAGBM"
  &gt;ls("package:TCGAGBM")
  character(0)
  &gt;ls(getNamespace("TCGAGBM"),all.names=TRUE)
  [1]"._NAMESPACE_."   "._S3MethodsTable_."  ".packageName"
  </code></pre>
  
  <p>However, under C (cmd), I see the following</p>
  
  <blockquote>
    <p>C:\Users\XYZ\Documents\R\R-2.15.1\library\TCGAGBM
     .   ..  data  extdata ...... (total 3 File(s), 7 Dir(s))</p>
  </blockquote>
  
  <p>I came across this "discrepancy" when I saw the following line of script -</p>
  
  <pre><code>&gt;clinical=read.delim(system.file(
  +"extdata/Clinical/clinical_patient_public_GBM.txt.gz",
  +package="TCGAGBM"), header=TRUE)
  </code></pre>
  
  <p>Thus I was wondering if there is a way under R to see ALL the content within a package so that we could "know" how better to utilize the package. Vignette would probably help, but in my limited experience with R so far, I have found that some packages did not come with Vignette.</p>
  
  <p>Any comment will be appreciated to help me learn more about R.</p>