Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think you are asking to see what I call the source code for a function in a package. If so, the way I do it is as follows, which has worked successfully for me on the three times I have tried. I keep these instructions handy in a few places and just copied and pasted them here:</p> <p>To see the source code for a function in Program R download the package containing the function. Specifically, download the file that ends in "tar.gz". This is a compressed file. Expand the compressed file using, for example, "WinZip". Now you need to open the uncompressed file that ends in ".tar". Download the free software "7-Zip". Click on the file "7zFM.exe" and navigate to the directory containing the ".tar" file. You can extract the contents of that ".tar" file into a new folder. The contents consist of R files showing the source code for the functions in the R package.</p> <p>EDIT:</p> <p>Today (July 8, 2012) I was able to open the 'tar.gz' file using the latest version of 'WinZIP' and could copy the contents (the source code) from there without having to use '7-Zip'.</p> <p>EDIT:</p> <p>Today (January 19, 2013) I viewed the source code for functions in base R by downloading the file 'R-2.15.2.tar.gz' </p> <p>To download that file go to the <a href="http://cran.at.r-project.org/" rel="nofollow noreferrer">http://cran.at.r-project.org/</a> webpage and click on that file in this line: </p> <p>"The latest release (2012-10-26, Trick or Treat): R-2.15.2.tar.gz, read what's new in the latest version."</p> <p>Unzip the file. WinZip will work, or it did for me. Then search your computer for <code>readtable.r</code> or another base R function.</p> <p>agstudy noted here <a href="https://stackoverflow.com/questions/14417214/source-file-for-r-function">https://stackoverflow.com/questions/14417214/source-file-for-r-function</a> that source code for <code>read.csv</code> is located in the file <code>readtable.r</code>, so do not expect every base R function to have its own file.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload