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.
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
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
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
4 matches
Mail list logo