Skip to content

formals expressed as R code.  #36

@romainfrancois

Description

@romainfrancois

This is somewhat related to RcppCore/Rcpp#190. The idea is to nest default inside C++ comments so that we can express them as R code rather than C++ defaults.

int foo( std::vector<int> x /*= c(1L, 2L) */ ){
    // .... whatever
}

The idea is that the parser recognize /*= and promote that to the formals of the generated R function.

@kevinushey is that something you would tackle since you know a bit more about the internals.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions