Did you try just supplying it as a string? This works in R in general:

"%foo%" <- function(a, b) a + b
21 %foo% 21
#> [1] 42

Gabor

On Sat, Dec 12, 2015 at 12:20 AM, Chris Watson <[email protected]> wrote:
> Hello,
>
> I've been trying to get some code working on a Windows machine. I believe
> when I use 'foreach', in a specific function it is having trouble with the
> '%--%' operator (as there are no other igraph functions in that loop). The
> error message I get is:
>
> "Error in { : task 1 failed - "object '.igraph.from' not found"
>
> Is there an alias or something like that, so I can use for the ".export"
> argument in the foreach loop? It only accepts a character vector, and
> backticks don't seem to do the trick.
>
> Thanks,
> Chris
>
> _______________________________________________
> igraph-help mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to