;;(defun ess-eval-string (string) "" body)1;;(defun ess-eval-string-popup (string) "" body)2;;(defun ess-eval-string-buffer (string) "" body)34(defun ess-region-or-word-at-point ()5"If the region is active, return the contents of the region.6If the region is not active, return the word-at-point."7(interactive)8(if mark-active9(buffer-substring-no-properties (region-beginning) (region-end))10(word-at-point)))111213(defun ess-eval-expanded (&optional head tail commands-buffer)14"Send the expanded region or word-at-point to the inferior-ess15process after first concating the head and tail. If the region is16active, the function uses the current region. If the region is not17active, the function uses the word-at-point"18(interactive)19(if (not head) (setq head "summary("))20(if (not tail) (setq tail ")"))21(if (not commands-buffer) (setq commands-buffer22(get-buffer-create "tmp-buffer")))23(ess-command (concat head24(ess-region-or-word-at-point)25tail)26commands-buffer))27(define-key ess-mode-map "\C-c\C-w" 'ess-eval-expanded)2829;; (defun ess-expand-string (string &optional head tail)30;; "Expand the STRING by concating the HEAD and TAIL.31;; Default result is 'summary(string)'."32;; (interactive)33;; (if (not head) (setq head "summary("))34;; (if (not tail) (setq tail ")"))35;; (concat head string tail))363738;; Write a popup Edit-data-menubar that will allow attributes and components39;; to be displayed.40;;41;; popup menu items:42;; summary4344;; show45;; help46;; dump to buffer47;; Edit.data (with optional location: window/buffer/frame)48;; drilldown49;; place in quotes (needed to get help on "[[" for example)50;; browser on51;; browser off52;; browser popup menu53;; add your own item to this menu545556