Hello my question is if a exists a command in R that permit to execute a code written in C, as for example the command "exec" of tcl that permits to execute a code of c inside tcl. Thanks Ruben
?.C Cheers, Simon. Simon Blomberg, PhD Depression & Anxiety Consumer Research Unit Centre for Mental Health Research Australian National University http://www.anu.edu.au/cmhr/ Simon.Blomberg at anu.edu.au +61 (2) 6125 3379> -----Original Message----- > From: solares at unsl.edu.ar [mailto:solares at unsl.edu.ar] > Sent: Wednesday, 29 October 2003 10:08 AM > To: R-help at stat.math.ethz.ch > Subject: [R] R with C code > > > > Hello my question is if a exists a command in R that permit > to execute a > code written in C, as for example the command "exec" of tcl > that permits to > execute a code of c inside tcl. Thanks Ruben > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >
See "Writing R Extensions" in the documentation that comes with R ... On Tue, 28 Oct 2003 solares at unsl.edu.ar wrote:> > Hello my question is if a exists a command in R that permit to execute a > code written in C, as for example the command "exec" of tcl that permits to > execute a code of c inside tcl. Thanks Ruben > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >-- 620B Bartram Hall bolker at zoo.ufl.edu Zoology Department, University of Florida http://www.zoo.ufl.edu/bolker Box 118525 (ph) 352-392-5697 Gainesville, FL 32611-8525 (fax) 352-392-3704
I believe you are looking for the .C() function For more details read its documentation and the "Writing R extensions Manual" On Tue, 28 Oct 2003 solares at unsl.edu.ar wrote:> > Hello my question is if a exists a command in R that permit to execute a > code written in C, as for example the command "exec" of tcl that permits to > execute a code of c inside tcl. Thanks Ruben > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > >Paulo Justiniano Ribeiro Jr Departamento de Estat?stica Universidade Federal do Paran? Caixa Postal 19.081 CEP 81.531-990 Curitiba, PR - Brasil Tel: (+55) 41 361 3471 Fax: (+55) 41 361 3141 e-mail: pj at est.ufpr.br http://www.est.ufpr.br/~paulojus