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

> >>
> >> 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.
> >
>
> I was thinking to replace only the first occurrence in the order given
> by ess-developer-package. How many times do you need to work on two
> packages with the same function  and you would also like to replace
> them at once?
>

OK - replacing all found occurrences does not make uch sense. But the
search order might be usefu:

I have cases where I wants to check if changes to foo() in package1 will
break the function foo() in package2 as

package2:foo might be as follow:

foo <- function(x) {
  y <- package1::foo(x)
  y <- y + 1
  return(y)
}

So the search order becomes important. If ess-developer-package is set to
"package1, package2", I could easily switch between editing package1 and
package2 by changing the search order from "as-entered" to "R".



> >>
> >> 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
> >
> >
>



-- 
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]]

