[R] RcppTemplate find example C++ souce code without Rtools ??

Gabor Grothendieck ggrothendieck at gmail.com
Tue May 27 17:03:13 CEST 2008


Rtools has an automated installer so is very easy to install.
Its no harder to install than R.  Just download
the most recent rtools*.exe file, run it and press return at each question.
Then assuming rtools is in c:\rtools, from the Windows command
line:

\rtools\bin\tar xvfz whatever.tar.gz

The above is all you have to do but optionally there are a couple
of other possibilities too:

1. Optionally after the above, you can add c:\rtools\bin to your
PATH in which case you can just write in place of the line above:

tar xfvz whatever.tar.gz

2. Another alternative in place of #1 requires no change in your
PATH at all so is even easier.  Just download the batchfiles distribution
(see home page at http://batchfiles.googlecode.com), and place
rtools.bat from it anywhere in your path.

Then do this in your console session (the first line temporarily augments
your path so you can access tar without an absolute path name for
the rest of the current console session -- it does this by finding rtools in
the registry and then uses that to augment the path):

rtools.bat
tar xfvz whatever.tar.gz


On Mon, May 26, 2008 at 10:08 AM, Roberto Iacopetti
<iacopetti at fastpiu.it> wrote:
>
> Dear R users,
>
> I would like to call R from C++ and Rcpp class library already compiled are
> a big advantage !!
> I have already read the doc/PDF in the installed package 5.0 and all the
> posts in this forum
>
> It's possible to get the source code (RcppExample.cpp) whitout Rtools ??
> (i'm not familiar whit Rtools)
>
> many thanks in advance
>
> Roberto Iacopetti
>
> win XP    sp 2.2600
> Dev-C++   4.9.9.2
> R 2.7.0
> and the way of
> --
> View this message in context: http://www.nabble.com/RcppTemplate--find-example-C%2B%2B-souce-code-without-Rtools----tp17472607p17472607.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list