Skip to content

when should args to DSL functions be named? #142

@paciorek

Description

@paciorek

If we don't name the args for nMatrix it doesn't behave as expected. So I think I am generally confused about how args by name vs. position work in the DSL.

No urgency, just flagging it.

go = nFunction(
        fun = function() {
            y <- nMatrix(7,3,5)
          return(y)
        },
        returnType = 'numericMatrix'
  )
cgo=nCompile(go)
cgo()
     [,1]
[1,]    0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions