Re: [R] Adding .R to source file keeps R from reading it?

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Thu 21 Sep 2006 - 21:58:06 GMT

On 9/21/06, John Tillinghast <tilling@gmail.com> wrote:
> Hi,
>
> I'm updating the LMGene package from Bioconductor. "Writing R Extensions"
> suggests
> that all source files (the ones in the R directory) have a .R ending, so I
> added it to the (one) source file.
> The next time I installed and ran R, R didn't understand any of the
> functions.
> I tried various things and eventually went back to the file and dropped the
> .R ending, installed, ran R. It worked!
> For purposes of distributing the package, do I want to leave the name
> without the .R, or add the .R and change something else?

I'm guessing that the "source" you are working on has been obtained by unzipping the windows binary zip file. Despite appearances, that is not the source code. For the proper source code, download the file that's marked as source. In this case,

http://bioconductor.org/packages/1.8/bioc/html/LMGene.html

clearly labels the following as "Source" (and the corresponding zip file as "Windows Binary")

http://bioconductor.org/packages/1.8/bioc/src/contrib/LMGene_1.0.0.tar.gz

This likely answers your other question as well.

-Deepayan



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri Sep 22 08:15:18 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 22 Sep 2006 - 02:30:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.