hello, I created a package with my functions, and i wand to hide the code of some functions. Could you help me ? Gr?gory -------------------------------------------------------------- GAZ DE FRANCE Gr?gory Benmenzer DIRECTION DE LA RECHERCHE P?le Economie Statistiques et Sociologie 361 Avenue du pr?sident Wilson - BP 33 93211 La Plaine Saint Denis cedex tel : 01 49 22 55 07 fax : 01 49 22 57 10
Please define what you mean by `hide'. If the functions are not to be called by users directly, just create a NAMESPACE and export only the ones you want to expose to the users. However, the users can still get to those not exported if they really want to. If you don't want the users to be able to see the code through any means, I don't know if that's possible. Andy> From: Gregory BENMENZER > > hello, > > I created a package with my functions, and i wand to hide the > code of some functions. > > Could you help me ? > > Gr?gory > > > > -------------------------------------------------------------- > GAZ DE FRANCE > > Gr?gory Benmenzer > > DIRECTION DE LA RECHERCHE > P?le Economie Statistiques et Sociologie > 361 Avenue du pr?sident Wilson - BP 33 > 93211 La Plaine Saint Denis cedex > > tel : 01 49 22 55 07 > fax : 01 49 22 57 10 > > ______________________________________________ > R-help at 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 > > >
you could use a namespace, look at "Writing R extensions" doc, section 1.6 I hope it helps. Best, Dimitris ---- Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/16/336899 Fax: +32/16/337015 Web: http://www.med.kuleuven.ac.be/biostat/ http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm ----- Original Message ----- From: "Gregory BENMENZER" <gregory.benmenzer at gazdefrance.com> To: <R-help at stat.math.ethz.ch> Sent: Thursday, April 07, 2005 2:43 PM Subject: [R] package> hello, > > I created a package with my functions, and i wand to hide the code > of some functions. > > Could you help me ? > > Gr?gory > > > > -------------------------------------------------------------- > GAZ DE FRANCE > > Gr?gory Benmenzer > > DIRECTION DE LA RECHERCHE > P?le Economie Statistiques et Sociologie > 361 Avenue du pr?sident Wilson - BP 33 > 93211 La Plaine Saint Denis cedex > > tel : 01 49 22 55 07 > fax : 01 49 22 57 10 > > ______________________________________________ > R-help at 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 >
On Apr 7, 2005 8:43 AM, Gregory BENMENZER <gregory.benmenzer at gazdefrance.com> wrote:> hello, > > I created a package with my functions, and i wand to hide the code of some functions. > > Could you help me ? > > Gr?goryThere was some discussion on the list that there is work being done on an R compiler. I don't know what the status is or whether it would indeed solve your problem but you could try googling around for it or maybe someone else on the list can provide more info.