Re: [ESS] Developing R packages under ESS

2018-03-08 Thread Boylan, Ross
I just wanted to evaluate some of the R code in the .Rnw file in my main R process, at global scope. But ESS seemed to think C-c C-r meant to do something else (in that file), like sweaving, instead. It may have tried just to do that on the highlighted region; I didn't investigate except to

Re: [ESS] Developing R packages under ESS

2018-03-08 Thread Vitalie Spinu
>> Just start R inside package directory and start eval-ing stuff as you >> normally do. > Do you mean that R must be launched from inside the package directory? I was imprecise. No, R process could be run from anywhere. It's that ess-r-package-mode is active only within the package directory.

Re: [ESS] Developing R packages under ESS

2018-03-08 Thread Ross Boylan
On Thu, Mar 08, 2018 at 03:29:14PM +, Sparapani, Rodney wrote: > Hi Ross: > I agree with Rich and Vitalie. This just works out of the box: no .emacs > fiddling. > Perhaps, you are tripping over the recent tightening of the interface. The > last bullet point > in the New features section of

Re: [ESS] Developing R packages under ESS

2018-03-08 Thread Ross Boylan
On Thu, Mar 08, 2018 at 04:22:04PM +0100, Vitalie Spinu wrote: > > > >> On Wed, Mar 07 2018 18:29, Ross Boylan wrote: > > > 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 > >

Re: [ESS] Developing R packages under ESS

2018-03-08 Thread Ross Boylan
On Wed, Mar 07, 2018 at 09:55:51PM -0500, Richard M. Heiberger wrote: > 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

Re: [ESS] Developing R packages under ESS

2018-03-08 Thread Sparapani, Rodney
Hi Ross: I agree with Rich and Vitalie. This just works out of the box: no .emacs fiddling. Perhaps, you are tripping over the recent tightening of the interface. The last bullet point in the New features section of 17.11 states… * ESS[R] Namespaced evaluation is now automatically enabled

Re: [ESS] Developing R packages under ESS

2018-03-08 Thread Vitalie Spinu
>> On Wed, Mar 07 2018 18:29, Ross Boylan wrote: > 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