[ESS] Developing R packages under ESS
Richard M. Heiberger
rmh @end|ng |rom temp|e@edu
Thu Mar 8 03:55:51 CET 2018
My guess is that starting from outside the package misled ESS.
Try this sequence.
library(mypackage)
## then open the R source in directory mypackage/R/
## modify the R files and C-c C-c revised functions. They will go
inside the namespace.
On Wed, Mar 7, 2018 at 9:29 PM, Ross Boylan <Ross.Boylan using ucsf.edu> wrote:
> 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