[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] : C and R Language
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] : C and R Language |
Date: |
Sat, 29 Nov 2014 13:03:13 -0500 |
Hi,
R studio is just a GUI to R, so it does not matter if it is plain R in
a terminal or RStudio, in this respect at least.
If you wrote C code that uses igraph, that is not that easy to use
from R. As I see you have two options:
- create a separate R package, that links to the igraph R package.
This probably requires that you modify the igraph R package as well,
so that your package can link to it.
- put your C code into the igraph R package, and write a wrapper to it from R.
None of these are easy, and you'll need to read 'Writing R extensions'
carefully:
http://cran.r-project.org/doc/manuals/r-devel/R-exts.html
I think, unless you have written a *really a lot* of C code, you are
better off rewriting it in R.
Gabor
On Fri, Nov 28, 2014 at 6:01 PM, patricia <address@hidden> wrote:
> Hello, Tamás
>
> Are you all right?
>
> I wonder if you know how do I run code written in C using RStudio (Windows
> Vista Operating System and IGRAPH installed with Cygwin)?
>
> Thank you!
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>