[ESS] Developing R packages under ESS

Ross Boylan Ro@@@Boy|@n @end|ng |rom uc@|@edu
Thu Mar 8 03:29:53 CET 2018


On Wed, Mar 07, 2018 at 08:52:39PM -0500, Richard M. Heiberger wrote:
> normally, it just works.  Do you have a recent ESS?

git tip as of yesterday.

> Try turning off
> your .emacs and see if that helps.
>
My .emacs file loads ESS.  I suppose I could try an .emacs file that
only does that.
Perhaps I'm not loading it in the right way.  My code is
(let ((mydir "~ross/ESS/lisp"))
  (if (file-readable-p mydir) ; true
    (setq load-path (append load-path (list mydir)))
    (load "ess-site")))
(setq inferior-julia-program-name "~ross/julia/julia")

(load "ess-site")

I have uninstalled the packed version of ESS (14.09) that comes with
my distribution (Debian).



> When you open .R files from a package, ESS knows about the package.
> When you C-c C-c revised files
> they go into the package namespace.

The file I opened initially, the one that sources all the others, is
above the package directory.  It sources files under the package
directory.  When I modified one of them I used C-c C-t C-s to disable
the namespace before I did C-c C-l.  This was on the theory that the
source() commands earlier stuck everything in the global namespace.

Ross




More information about the ESS-help mailing list