|
From: | Chris Watson |
Subject: | Re: [igraph] R: Export the operator '%--%' for use with 'foreach' |
Date: | Mon, 14 Dec 2015 18:32:47 -0500 |
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 <address@hidden> 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
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help
[Prev in Thread] | Current Thread | [Next in Thread] |