Dear Gary Wong:
Are you trying to defeat the GNU License? If so,
why not make it
available as an S-Plus library? There, you don't
have to provide the
source; binary files will suffice.
spencer graves
bogdan romocea wrote:
There's something else you could try - since you
obfuscate it. Hide the real thing in a large pile
complicated, awfully formatted code that would
most desperate (including yourself, after a couple
from trying to understand it. The best solution
the code, but R is not there yet.
-----Original Message-----
From: Prof Brian Ripley
[mailto:ripley at stats.ox.ac.uk]
Sent: Saturday, July 30, 2005 5:35 AM
To: Gary Wong
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] How to hiding code for a package
What you ask is impossible. For a function to be
has to be
locatable and hence can be printed.
One possibility is to have a namespace, and
foo <- function(...) foo_internal(...)
where foo is exported but foo_internal is not.
hidden from casual inspection, but it can be
Why do you want to do this? Anyhone can read the
package, and any function which can be called can
deparsed, possibly
after jumping through a few hoops.
On Sat, 30 Jul 2005, Gary Wong wrote:
Hey everyone,
I have made a package and wish to release it but
before then I have a problem. I have a few
in this package written in R that I wish to hide
that after installation, someone can use say the
function >foo(parameters = "") but cannot do
Typing foo should not show the source code or at
not all of it. Is there a way to do this ? I have
searched the mailing list and used google, and
found something like "[R] Hiding internal package
functions for the doc. pkg-internal.Rd" but this
different since it seems that the keyword
just hides the function from showing in the index
hides documentation, not the function itself. Can
someone help? Thanks
Professor of Applied Statistics,
University of Oxford, Tel: +44 1865
1 South Parks Road, +44 1865
Oxford OX1 3TG, UK Fax: +44 1865