Re: [R] How to hiding code for a package

From: Tuszynski, Jaroslaw W. <JAROSLAW.W.TUSZYNSKI_at_saic.com>
Date: Tue 02 Aug 2005 - 00:20:18 EST


I always thought that ability to see and study the code of every package, was a great thing about R and other "open source" environments. So I hope there are no good ways of hiding the code of packages.

Jarek

====================================================\=======

 Jarek Tuszynski, PhD.                           o / \ 
 Science Applications International Corporation  <\__,|  
 (703) 676-4192                                   ">   \
 Jaroslaw.W.Tuszynski@saic.com                     `    \



-----Original Message-----
From: r-help-bounces@stat.math.ethz.ch
[mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Gary Wong Sent: Saturday, July 30, 2005 4:21 AM
To: r-help@stat.math.ethz.ch
Subject: [R] How to hiding code for a package

Hey everyone,

I have made a package and wish to release it but before then I have a problem. I have a few functions in this package written in R that I wish to hide such that after installation, someone can use say the function
>foo(parameters = "") but cannot do >foo.
Typing foo should not show the source code or at least not all of it. Is there a way to do this ? I have searched the mailing list and used google, and have found something like "[R] Hiding internal package functions for the doc. pkg-internal.Rd" but this seems different since it seems that the keyword internal just hides the function from showing in the index and hides documentation, not the function itself. Can someone help? Thanks

Gary



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

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 Received on Tue Aug 02 00:28:03 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:00:29 EST