Re: [R] functions as arguments to ther functions with inlinedocs

2013-01-25 Thread Jannis
Dear Duncan, dear Rui, thanks for your replies. You are correct regarding the additional paranthesis. I probably copied the wrong code. I, however, get this inlinedocs error with the correct version. After contacting the package maintainer I think this is now added to inlinedocs list of bugs.

Re: [R] functions as arguments to ther functions with inlinedocs

2013-01-24 Thread Rui Barradas
Hello, Sorry, it's RIGHT parenthesis. Rui Barradas Em 24-01-2013 18:54, Rui Barradas escreveu: Hello, Your function declaration has a syntax error, one left parenthesis too much. Corrected it would be dummyfunction <- function(filters = function(x) {b = 0; x > b} ){ # rest of code here

Re: [R] functions as arguments to ther functions with inlinedocs

2013-01-24 Thread Rui Barradas
Hello, Your function declaration has a syntax error, one left parenthesis too much. Corrected it would be dummyfunction <- function(filters = function(x) {b = 0; x > b} ){ # rest of code here filters # this returns a function, don't need return() } x <- -5:5 f <- dummyfunction() # this

Re: [R] functions as arguments to ther functions with inlinedocs

2013-01-24 Thread Duncan Murdoch
On 24/01/2013 1:32 PM, Jannis wrote: Dear R community, I have a problem when I use functions as default values for argumnents in other functions. When I use curly brackets { here, I can not create a package with inlinedocs. It will give me the error when using package.skeleton() in my package st

[R] functions as arguments to ther functions with inlinedocs

2013-01-24 Thread Jannis
Dear R community, I have a problem when I use functions as default values for argumnents in other functions. When I use curly brackets { here, I can not create a package with inlinedocs. It will give me the error when using package.skeleton() in my package structure: Error in parse(text = ut