Declaring special (infix) functions in R packages

后端 未结 1 802
借酒劲吻你
借酒劲吻你 2021-01-14 13:42

I am writing a package containing a function such as:

\"%IN%\" <- function(x, table) x & match(x, table, nomatch = 0) > 0

When I

1条回答
  •  孤街浪徒
    2021-01-14 14:20

    The solution entails installing roxygen2 and modifying the NAMESPACE file to include a line such as:

    export("%IN%")
    

    0 讨论(0)
提交回复
热议问题