[ESS] ess-tracebug

Rainer M Krug r.m.krug at gmail.com
Fri Dec 10 09:53:19 CET 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/10/2010 12:14 AM, Vitalie S. wrote:
> Rainer M Krug <r.m.krug at gmail.com> writes:
> 
>>>
>>> I will illustrate the ess-tracebug functionality with the test file at
>>> http://ess-tracebug.googlecode.com/svn/trunk/test.R .  It contains one function
>>> lm_test with an erroneous "," at line 6.
>>>
>>> For what follows, I will assume that all the key bindings are as suggested on
>>> the main page http://code.google.com/p/ess-tracebug/ .
>>
>> There I hava a problem - I get the following error message:
>>
>> Symbol's value as variable is void: inferior-ess-mode
>>
>>>
> 
> Can you please explain stepwise how you get the error? Do you get it with the latest
> version of the package?

OK

ESS version: 5.12
Tracebug: downloaded just now
Emacs: GNU Emacs 23.2.1

Start emacs with
emacs -Q

execute the following emacs-lisp code:

#+begin_src emacs-lisp
  (add-to-list 'load-path "~/.emacs.d/site-lisp")

  (add-to-list 'load-path "~/.emacs.d/ess")
  (load "~/.emacs.d/ess/lisp/ess-site")
  (require 'ess-site)

  (require 'ess-tracebug)
  (add-hook 'ess-post-run-hook 'ess-debug t)
  (add-hook 'ess-post-run-hook 'ess-traceback t)

  (define-key ess-mode-map "\M-]" 'next-error)
  (define-key ess-mode-map "\M-[" 'previous-error)
  (define-key inferior-ess-mode "\M-]" 'next-error-no-select)
  (define-key inferior-ess-mode "\M-[" 'previous-error-no-select)

  (define-key ess-mode-map [(control ?x)(?`)] 'ess-show-R-traceback)
  (define-key inferior-ess-mode-map [(control ?x)(?`)]
'ess-show-R-traceback)

  (define-key compilation-minor-mode-map [(?n)] 'next-error-no-select)
  (define-key compilation-minor-mode-map [(?p)] 'previous-error-no-select)
#+end_src

and I get the error

Cheers,

Rainer
> 
>>
>> I must say, very handy. I will definitely try it out.
>>
>> Thanks a lot for this detailed description and ilustration of tracebug's
>> features - I would actually suggest to add it as a tutorial to the
>> tracebug website.
> 
> Thanks for the tip. It's done.
> 
> Find the tutorial of basic features here:
> http://code.google.com/p/ess-tracebug/wiki/tutorial_basic_features
> 
> Vitalie


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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:        +33 - (0)9 53 10 27 44
Cell:       +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:      Rainer at krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0B6n8ACgkQoYgNqgF2egp/gQCfR+ostMXqJZlo8NpdzOenTQjN
uMIAniusWAiqWRv3P7fdn9vCLknSi4Up
=kBqh
-----END PGP SIGNATURE-----



More information about the ESS-help mailing list