"<=" in R or S

Pierre Kleiber pkleiber at honlab.nmfs.hawaii.edu
Tue Oct 3 03:12:35 CEST 2000


Many of you have probably seen the discussion in the R-help list
with the subject:
   [R] Unreadable code: was the underscore ("_") in variables

I thought I should be able to bind an unused key combination to
a function to insert "<-", and then I could gloat about another
advantage of running R from ess.  I put the following in .emacs:

  (defun R-equals () (insert "<-"))
  (global-set-key [?\C-=] 'R-equals)

But all I get from C-= is "Wrong type argument, commandp, R-equals"
in the Minibuffer.  Being lisp literate enough only to get into
trouble, I'm stumped at this point.  Does anyone have any suggestions?
   Thanks, Pierre


-- 
-----------------------------------------------------------------
Pierre Kleiber             Email: pkleiber at honlab.nmfs.hawaii.edu
Fishery Biologist                     Tel: 808 983-5399/737-7544
NOAA FISHERIES - Honolulu Laboratory         Fax: 808 983-2902
2570 Dole St., Honolulu, HI 96822-2396 
-----------------------------------------------------------------
 "God could have told Moses about galaxies and mitochondria and
  all.  But behold... It was good enough for government work."
-----------------------------------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the ESS-help mailing list