[ESS] r-related question: editing NAMESPACEd functions in packages
Vitalie Spinu
spinuvit at gmail.com
Tue Nov 8 10:36:10 CET 2011
On 8 November 2011 10:21, Rainer M Krug <r.m.krug at gmail.com> wrote:
>
>
> On Tue, Nov 8, 2011 at 10:15 AM, Vitalie Spinu <spinuvit at gmail.com> wrote:
>>
>> On 8 November 2011 10:02, Rainer M Krug <r.m.krug at gmail.com> wrote:
>> >> 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,
>>
>> I assume loading packs in ess-deloper-packages should be enough?
>>
>> > 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.
>>
>> There will be ess-developer-toggle.
>> Sourcing the script looks like a great way of customizing the
>> developer setup, but I cannot figure out anything useful by myself.
>> Any practical examples?
>
> Entering devmode: Loading devtools, roxygen, setting variables which define
> log-levels ion the package, ... I can think of may things which might be
> useful. And: load and enable tracebug (so a enter-ess-devmode-hook and
> leave-ess-devmode-hook would be useful, see changing of face below).
> Leaving devmode: resetting loglevels, removiong variables, unloading
> packages, ..
>
Ok, sourcing of custom files is there. Hooks are there.
> In addition, I think it would be a good idea to use a different face for the
> ESS related windos to make clear that devmode is enabled.
>
I was thinking a highlighted mode-line of the inferior R would be
enough. It's technically possible to make the modeline of all the
associated with current process buffers highlight but it would require
some modifications of the core. I will look into it. This might be
useful for tools like tracebug. Currently tracebug only highlights the
inferior modeline.
Vitalie.
>>
>> Vitalie
>
>
>
> --
> 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 at krugs.de
>
> Skype: RMkrug
>
>
More information about the ESS-help
mailing list