Re: [Rd] Operator masks in R, restrict set of applicable functions

2006-03-27 Thread Prof Brian Ripley
On Mon, 27 Mar 2006, Michael Dondrup wrote: > Thank you very much, > Sorry for bothering again, but how about this: > >> assignInNamespace('system',function(...)stop('No system!'),'base') >> system() > Error in system() : No system! >> base::system() > Error in base::system() : No system! >> detac

Re: [Rd] Operator masks in R, restrict set of applicable functions

2006-03-27 Thread Michael Dondrup
Thank you very much, Sorry for bothering again, but how about this: > assignInNamespace('system',function(...)stop('No system!'),'base') > system() Error in system() : No system! > base::system() Error in base::system() : No system! > detach(package:utils) # no way back? I guess there is a wa

Re: [Rd] Operator masks in R, restrict set of applicable functions

2006-03-27 Thread Prof Brian Ripley
On Mon, 27 Mar 2006, Michael Dondrup wrote: > Hi, > is there a way to restrict the set of admissible functions for an eval() > statement to a possibly 'safe' set, excluding all potentially dangerous > functions like 'system', 'open', etc.(like, for instance, in the 'Safe' > module for Perl)? In s