On Mon, Nov 7, 2011 at 11:24 PM, Vitalie Spinu <spinuvit@gmail.com> wrote:

> On 7 November 2011 21:42, Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk> wrote:
> > Thanks Gavin, Steve.  I'll check out these ideas, but it sounds like
> > there's some work needed (or too much to worry about for now) to get
> > ess-eval-defun and friends to take care of these extra steps.
> >
>
> What could be actually done at ESS side is to introduce the notions of
> user-mode and developer-mode.
>
>  - user-mode is usual ESS as we know it.
>  - developer-mode makes ess-eval-function (and frends) search for the
> function name in all the attached packages (even if hidden).
>

In addition, one should be able to specify packages which are load ad
automatically when switching to developer-mode, and the possibility to
source an R script when entering and quitting developer-mode
(ess-dev-mode-on.R, ess-dev-mode-off.R) would also be nice.

Cheers,

Rainer



>   If found, assign by means of 'assignInNamespace', otherwise just as
> usual assign it in .GlobalEnv.
>
> So whenever you work on your package(s), just activate developer-mode,
> when finished switch it off.
>
> Would not require much to implement -  a couple of ess-command , one
> developer/user-mode switcher + mode-line indicator.
>
> 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]]

