[ESS] roxygen question

Rainer M Krug r.m.krug at gmail.com
Thu Apr 30 11:16:59 CEST 2009


On Mon, Apr 20, 2009 at 10:26 AM, Stephen Eglen
<S.J.Eglen at damtp.cam.ac.uk> wrote:
> Rainer M Krug <r.m.krug at gmail.com> wrote:
>
>> Hi
>>
>> I want to use roxygen and the function ess-roxygen-fn but I have a
>> problem. I am using the package simecol, and my functions are defined
>> as follow:
>>
>>
>> equations(ASM)$germSpecies <- function(param, species) { ... }
>>
>> When I call ess-roxygen-fn (bound to C-c C-o), I get the error message:
>>
>> "Point is not in a function according to 'ess-function-pattern'"
>
> This error occurs due to ess not being able to find the start of
> function; although you've called an roxygen function, the error is in:
> ess-beginning-of-function -- try calling that function within the braces
> and you'll see the same error.
>
>> Is it possible to change these pattern?
>
> mmm... the place to start looking would be the variable
> ess-function-pattern, but you will see that is quite complex already.
> I guess the problem you are hitting is the fact that you have  () on the
> left hand side of the assignment operator, i.e. '(ASM)'

Where can I find this variable, so that I can see if I can modify it?


>
> Stephen
>



-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa



More information about the ESS-help mailing list