[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] R: Export the operator '%--%' for use with 'foreach'

From: Gábor Csárdi
Subject: Re: [igraph] R: Export the operator '%--%' for use with 'foreach'
Date: Sun, 13 Dec 2015 23:27:38 +0000

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


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]