Skip to content

Cannot export special binary operators #37

@chris-perts

Description

@chris-perts

The R language spec allows the definition of new binary operators.

This was supported within module code as recently as version 0.8.0. With #21 and version 0.9.0, however, it throws an error:

> modules::module({ "%!%" <- function(...) 'foo' })
Error: unable to resolve export: %!%
failed with
Error in parse(text = element): <text>:1:1: unexpected SPECIAL
1: %!%
    ^

With version 0.8.0:

> modules::module({ "%!%" <- function(...) 'foo' })
%!%:
function(...)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions