On Tue, Nov 8, 2011 at 9:47 AM, Vitalie Spinu <spinuvit@gmail.com> wrote:

> On 7 November 2011 23:43, Richard M. Heiberger <rmh@temple.edu> wrote:
> >>  - developer-mode makes ess-eval-function (and frends) search for the
> >> function name in all the attached packages (even if hidden).
> >>   If found, assign by means of 'assignInNamespace', otherwise just as
> >> usual assign it in .GlobalEnv.
> >
> > this will be fabulous.
> > I don't think you should be looking in "all the attached packages".
> > You should look only in the specific namespace that you told ESS to use.
> > Part of the point of namespaces is to allow multiple packages to use the
> > same object
> > names.  Finding some use of the name somewhere and replacing it would
> not be
> > the
> > right thing to do.
> >
>
>  How about custom variable 'ess-developer-packages'  to hold the
> packages and function 'ess-develpper-add-packages'  to modify this
> variable interactively?
>

Sounds great.


> ess-developer-packages can be 'all, nil or a list of strings. Should
> the default be 'all or nil?


The question is what happens when ess-developer-packages is a list of
strings: does it search through all the environments and replaces all
occurrences of the function, or does it stop after the first? In which
order does it search - in the order given, or in the R search order? Should
be configurable as well.


> Or may be 'all not at all:) Actually risk
> of confounding would be minimal if ess-eval-function would explicitly
> message the place of assignment.


> I will look into the implementation, since I would like to have
> something of this kind in my personal setup at least.
>

Brilliant - this would be a *very* useful feature.

Cheers,

Rainer



> Vitalie.
>
> ______________________________________________
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax (F):       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug

	[[alternative HTML version deleted]]

